Esempio n. 1
0
        public ClassifierResponseItem()
        {
            FileGroup = FileGroupType.UNKNOWN;

            Confidence = 0.0;

            Status = ClassifierStatus.INCOMPLETE;
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes member variables to their initial values.
 /// </summary>
 /// <remarks>
 /// This function is called by the contructors.
 /// </remarks>
 private void InitializeMembers()
 {
     this.fileGroupName  = string.Empty;
     this.fileGroupType  = Registry.FileGroupType.Unknown;
     this.allocatedSpace = 0;
     this.usedSpace      = 0;
     this.reservedSpace  = 0;
 }
Esempio n. 3
0
 /// <summary>
 /// Creates a deep copy of the passed object.
 /// </summary>
 /// <param name="old">A <b>Database Instance File Group</b> object to create the deep copy from.</param>
 private void CopyMembers(DatabaseInstanceFileGroup old)
 {
     this.fileGroupName  = old.fileGroupName;
     this.fileGroupType  = old.fileGroupType;
     this.allocatedSpace = old.allocatedSpace;
     this.usedSpace      = old.usedSpace;
     this.reservedSpace  = old.reservedSpace;
 }
Esempio n. 4
0
 /// <summary>
 /// Creates a deep copy of the passed object.
 /// </summary>
 /// <param name="old">A <b>File Group</b> object to create the deep copy from.</param>
 private void CopyMembers(FileGroup old)
 {
     this.fileGroupType  = old.fileGroupType;
     this.layoutType     = old.layoutType;
     this.allocationType = old.allocationType;
     this.diskVolumeType = old.diskVolumeType;
     this.fileGroupName  = old.fileGroupName;
     this.allocatedSpace = old.allocatedSpace;
     this.fileCount      = old.fileCount;
 }
Esempio n. 5
0
        public ClassifierResponseItem(byte[] data, string fileName, bool useFileName = false)
        {
            Data = data;

            FileName = fileName;

            SizeInBytes = data.Length;

            SHA1Hash = data.ToSHA1();

            FileGroup = GetGroupType(FileName, useFileName);

            IsMalicious = fileName.Contains("malicious", StringComparison.InvariantCultureIgnoreCase);

            Status = ClassifierStatus.INCOMPLETE;
        }
Esempio n. 6
0
        public ClassifierResponseItem(byte[] data, string fileName, bool useFileName = false)
        {
            Data = data ?? throw new ArgumentNullException(nameof(data));

            FileName = fileName ?? throw new ArgumentNullException(nameof(FileName));

            if (Data.Length == 0)
            {
                throw new ArgumentOutOfRangeException(nameof(data));
            }

            SizeInBytes = data.Length;

            SHA1Hash = data.ToSHA1();

            FileGroup = GetGroupType(FileName, useFileName);

            IsMalicious = fileName.Contains("malicious", StringComparison.InvariantCultureIgnoreCase);

            Status = ClassifierStatus.INCOMPLETE;
        }
Esempio n. 7
0
 /// <summary>
 /// Creates a deep copy of the passed object.
 /// </summary>
 /// <param name="old">A <b>File Group</b> object to create the deep copy from.</param>
 private void CopyMembers(FileGroup old)
 {
     this.fileGroupType = old.fileGroupType;
     this.layoutType = old.layoutType;
     this.allocationType = old.allocationType;
     this.diskVolumeType = old.diskVolumeType;
     this.fileGroupName = old.fileGroupName;
     this.allocatedSpace = old.allocatedSpace;
     this.fileCount = old.fileCount;
 }
 /// <summary>
 /// Initializes member variables to their initial values.
 /// </summary>
 /// <remarks>
 /// This function is called by the contructors.
 /// </remarks>
 private void InitializeMembers()
 {
     this.fileGroupName = string.Empty;
     this.fileGroupType = Registry.FileGroupType.Unknown;
     this.allocatedSpace = 0;
     this.usedSpace = 0;
     this.reservedSpace = 0;
 }
 /// <summary>
 /// Creates a deep copy of the passed object.
 /// </summary>
 /// <param name="old">A <b>Database Instance File Group</b> object to create the deep copy from.</param>
 private void CopyMembers(DatabaseInstanceFileGroup old)
 {
     this.fileGroupName = old.fileGroupName;
     this.fileGroupType = old.fileGroupType;
     this.allocatedSpace = old.allocatedSpace;
     this.usedSpace = old.usedSpace;
     this.reservedSpace = old.reservedSpace;
 }
        /// <summary>
        /// Initializes member variables to their initial values.
        /// </summary>
        /// <remarks>
        /// This function is called by the contructors.
        /// </remarks>
        private void InitializeMembers()
        {
            base.EntityType = EntityType.DatabaseInstanceFileGroup;
            base.EntityGroup = EntityGroup.Layout;

            this.fileGroupName = string.Empty;
            this.fileGroupType = Registry.FileGroupType.Unknown;
            this.allocatedSpace = 0;
            this.usedSpace = 0;
            this.reservedSpace = 0;
        }