Exemplo n.º 1
0
 public CNetwareSMEDirB(CBackupStream Reader)
 {
     DirectoryAttributes = Reader.ReadUInt32();
     CreatorNameSpace    = Reader.ReadUInt32();
     Volume   = Reader.ReadBytes(18);
     Modified = Reader.ReadInt16();
 }
Exemplo n.º 2
0
 public CNetwareDirB(CBackupStream Reader)
 {
     OwnerID             = Reader.ReadUInt32();
     DirectoryAttributes = Reader.ReadUInt32();
     MaximumSpace        = Reader.ReadUInt32();
     InheritedRights     = Reader.ReadUInt16();
 }
Exemplo n.º 3
0
        byte[] Volume; // 17 bytes

        public CNetwareSMSFile(CBackupStream Reader)
        {
            FileAttributes   = Reader.ReadUInt32();
            Modified         = Reader.ReadInt16();
            CreatorNameSpace = Reader.ReadUInt32();
            Volume           = Reader.ReadBytes(17);
        }
Exemplo n.º 4
0
 public CWindowsNT1File(CBackupStream Reader)
 {
     FileAttributes  = Reader.ReadUInt32();
     ShortNameOffset = Reader.ReadUInt16();
     ShortNameSize   = Reader.ReadUInt16();
     NTFileFlags     = Reader.ReadUInt32();
 }
Exemplo n.º 5
0
 public CNetwareFile(CBackupStream Reader)
 {
     OwnerID         = Reader.ReadUInt32();
     FileAttributes  = Reader.ReadUInt32();
     LastModiferID   = Reader.ReadUInt32();
     ArchiverID      = Reader.ReadUInt32();
     InheritedRights = Reader.ReadUInt16();
 }
Exemplo n.º 6
0
 public CMacintoshFile(CBackupStream Reader)
 {
     FinderInfo           = Reader.ReadBytes(16);
     AdditionalFinderInfo = Reader.ReadBytes(16);
     FileID         = Reader.ReadUInt32();
     FileType       = Reader.ReadUInt32();
     FileCreator    = Reader.ReadUInt32();
     FileInfo       = Reader.ReadUInt16();
     FileXInfo      = Reader.ReadByte();
     FileAttributes = Reader.ReadByte();
 }
Exemplo n.º 7
0
        byte[] FinderInfo; // 16 bytes

        #endregion Fields

        #region Constructors

        public CMacintoshFile(CBackupStream Reader)
        {
            FinderInfo = Reader.ReadBytes(16);
            AdditionalFinderInfo = Reader.ReadBytes(16);
            FileID = Reader.ReadUInt32();
            FileType = Reader.ReadUInt32();
            FileCreator = Reader.ReadUInt32();
            FileInfo = Reader.ReadUInt16();
            FileXInfo = Reader.ReadByte();
            FileAttributes = Reader.ReadByte();
        }
 public CEndOfDataSetDescriptorBlock(CBackupStream backupStream)
 {
     base.ReadData(backupStream);
     ESETAttributes         = (ESSETAttributes)backupStream.ReadUInt32();
     NumberOfCorruptFiles   = backupStream.ReadUInt32();
     ReservedforMBC1        = backupStream.ReadUInt64();
     ReservedforMBC2        = backupStream.ReadUInt64();
     FDDMediaSequenceNumber = backupStream.ReadUInt16();
     DataSetNumber          = backupStream.ReadUInt16();
     MediaWriteDate         = backupStream.ReadDate();
     base.ReadStreams(backupStream);
 }
 public CDirectoryDescriptorBlock(CBackupStream reader)
 {
     base.ReadData(reader);
     DIRBAttributes       = (EDIRBAttributes)reader.ReadUInt32();
     LastModificationDate = reader.ReadDate();
     CreationDate         = reader.ReadDate();
     BackupDate           = reader.ReadDate();
     LastAccessDate       = reader.ReadDate();
     DirectoryID          = reader.ReadUInt32();
     // MTF uses '\0' as the path seperator. Replace them with '\\'
     DirectoryName = reader.ReadString(StartPosition, StringType).Replace('\0', '\\');
     base.ReadStreams(reader);
 }
 public CFileDescriptorBlock(CBackupStream backupStream)
 {
     base.ReadData(backupStream);
     FileAttributes       = (EFileAttributes)backupStream.ReadUInt32();
     LastModificationDate = backupStream.ReadDate();
     CreationDate         = backupStream.ReadDate();
     BackupDate           = backupStream.ReadDate();
     LastAccessDate       = backupStream.ReadDate();
     DirectoryID          = backupStream.ReadUInt32();
     FileID   = backupStream.ReadUInt32();
     FileName = backupStream.ReadString(StartPosition, StringType);
     base.ReadStreams(backupStream);
 }
 public CSoftFilemarkDescriptorBlock(CBackupStream backupStream)
 {
     base.ReadData(backupStream);
     NumberOfFilemarkEntries     = backupStream.ReadUInt32();
     FilemarkEntriesUsed         = backupStream.ReadUInt32();
     PBAofPreviousFilemarksArray = new uint[FilemarkEntriesUsed];
     for (uint i = 0; i < NumberOfFilemarkEntries; i++)
     {
         uint val = backupStream.ReadUInt32();
         if (i < FilemarkEntriesUsed)
         {
             PBAofPreviousFilemarksArray.SetValue(val, i);
         }
     }
     //base.ReadStreams(Reader);
 }
Exemplo n.º 12
0
 public CWindowsNT0File(CBackupStream Reader)
 {
     FileAttributes  = Reader.ReadUInt32();
     ShortNameOffset = Reader.ReadUInt16();
     ShortNameSize   = Reader.ReadUInt16();
     IsLink          = Reader.ReadInt16();
     Reserved        = Reader.ReadUInt16();
 }
 public CCorruptObjectDescriptorBlock(CBackupStream backupStream)
 {
     base.ReadData(backupStream);
     CFilAttributes     = (ECFilAttributes)backupStream.ReadUInt32();
     Reserved           = backupStream.ReadUInt64();
     StreamOffset       = backupStream.ReadUInt64();
     CorrupStreamNumber = backupStream.ReadUInt16();
     base.ReadStreams(backupStream);
 }
Exemplo n.º 14
0
        byte[] FinderInfo; // 16 bytes

        #endregion Fields

        #region Constructors

        public CMacintoshDirB(CBackupStream Reader)
        {
            FinderInfo = Reader.ReadBytes(16);
            AdditionalFinderInfo = Reader.ReadBytes(16);
            DirectoryID = Reader.ReadUInt32();
            DirectoryInfo = Reader.ReadUInt16();
            DirectoryXInfo = Reader.ReadByte();
            DirectoryAttributes = Reader.ReadByte();
        }
Exemplo n.º 15
0
 public CMacintoshDirB(CBackupStream Reader)
 {
     FinderInfo           = Reader.ReadBytes(16);
     AdditionalFinderInfo = Reader.ReadBytes(16);
     DirectoryID          = Reader.ReadUInt32();
     DirectoryInfo        = Reader.ReadUInt16();
     DirectoryXInfo       = Reader.ReadByte();
     DirectoryAttributes  = Reader.ReadByte();
 }
 public CVolumeDescriptorBlock(CBackupStream backupStream)
 {
     base.ReadData(backupStream);
     VOLBAttributes = (EVOLBAttributes)backupStream.ReadUInt32();
     DeviceName     = backupStream.ReadString(StartPosition, StringType);
     VolumeName     = backupStream.ReadString(StartPosition, StringType);
     MachineName    = backupStream.ReadString(StartPosition, StringType);
     MediaWriteDate = backupStream.ReadDate();
     base.ReadStreams(backupStream);
 }
 public CTapeHeaderDescriptorBlock(CBackupStream backupStream)
 {
     base.ReadData(backupStream);
     MediaFamilyID               = backupStream.ReadUInt32();
     TapeAttributes              = (ETapeAttributes)backupStream.ReadUInt32();
     MediaSequenceNumber         = backupStream.ReadUInt16();
     PasswordEncryptionAlgorithm = backupStream.ReadUInt16();
     SoftFilemarkBlockSize       = backupStream.ReadUInt16();
     MediaBasedCatalogType       = (EMediaBasedCatalogType)backupStream.ReadUInt16();
     MediaName              = backupStream.ReadString(StartPosition, StringType);
     MediaDescription       = backupStream.ReadString(StartPosition, StringType);
     MediaPassword          = backupStream.ReadString(StartPosition, StringType);
     SoftwareName           = backupStream.ReadString(StartPosition, StringType);
     FormatLogicalBlockSize = backupStream.ReadUInt16();
     SoftwareVendorID       = backupStream.ReadUInt16();
     MediaDate              = backupStream.ReadDate();
     MTFMajorVersion        = backupStream.ReadByte();
     base.ReadStreams(backupStream);
 }
Exemplo n.º 18
0
        byte [] VolumeFinderInfo;         // 32 bytes

        public CMacintoshVolB(CBackupStream Reader)
        {
            VolumeParmsAttributes = Reader.ReadUInt32();
            VolumeAttributes      = Reader.ReadUInt16();
            VolumeSignature       = Reader.ReadUInt16();
            DriveNumber           = Reader.ReadUInt16();
            DriverRefNumber       = Reader.ReadUInt16();
            FileSystemID          = Reader.ReadUInt16();
            CreatorDate           = Reader.ReadDate();
            ModificationDate      = Reader.ReadDate();
            VolumeFinderInfo      = Reader.ReadBytes(32);
        }
Exemplo n.º 19
0
 public CMacintoshVolB(CBackupStream Reader)
 {
     VolumeParmsAttributes = Reader.ReadUInt32();
     VolumeAttributes = Reader.ReadUInt16();
     VolumeSignature = Reader.ReadUInt16();
     DriveNumber = Reader.ReadUInt16();
     DriverRefNumber = Reader.ReadUInt16();
     FileSystemID = Reader.ReadUInt16();
     CreatorDate = Reader.ReadDate();
     ModificationDate = Reader.ReadDate();
     VolumeFinderInfo = Reader.ReadBytes(32);
 }
        /// <summary>
        /// Read block header.
        /// </summary>
        protected void ReadData(CBackupStream reader)
        {
            StartPosition = reader.BaseStream.Position;
            Streams       = new List <CDataStream>();

            BlockType          = (EBlockType)reader.ReadUInt32();
            Attributes         = (EBlockAttributes)reader.ReadUInt32();
            OffsetToFirstEvent = reader.ReadUInt16();
            OSID                 = (EOSID)reader.ReadByte();
            OSVersion            = reader.ReadByte();
            DisplayableSize      = reader.ReadUInt64();
            FormatLogicalAddress = reader.ReadUInt64();
            ReservedMBC          = reader.ReadUInt16();
            Reserved1            = reader.ReadUInt16();
            Reserved2            = reader.ReadUInt16();
            Reserved3            = reader.ReadUInt16();
            ControlBlock         = reader.ReadUInt32();
            Reserved4            = reader.ReadUInt32();
            OsSpecificData       = reader.ReadOsSpecificData(StartPosition, OSID, OSVersion, BlockType);
            StringType           = (EStringType)reader.ReadByte();
            Reserved5            = reader.ReadByte();
            HeaderChecksum       = reader.ReadUInt16();
        }
 public CStartOfDataSetDescriptorBlock(CBackupStream backupStream)
 {
     base.ReadData(backupStream);
     SSETAttributes = (ESSETAttributes)backupStream.ReadUInt32();
     PasswordEncryptionAlgorithm  = backupStream.ReadUInt16();
     SoftwareCompressionAlgorithm = backupStream.ReadUInt16();
     SoftwareVendorID             = backupStream.ReadUInt16();
     DataSetNumber        = backupStream.ReadUInt16();
     DataSetName          = backupStream.ReadString(StartPosition, StringType);
     DataSetDescription   = backupStream.ReadString(StartPosition, StringType);
     DataSetPassword      = backupStream.ReadString(StartPosition, StringType);
     UserName             = backupStream.ReadString(StartPosition, StringType);
     PhysicalBlockAddress = backupStream.ReadUInt64();
     MediaWriteDate       = backupStream.ReadDate();
     SoftwareMajorVersion = backupStream.ReadByte();
     SoftwareMinorVersion = backupStream.ReadByte();
     MTFTimeZone          = backupStream.ReadSByte();
     MTFMinorVersion      = backupStream.ReadByte();
     MediaCatalogVersion  = backupStream.ReadByte();
     base.ReadStreams(backupStream);
 }
Exemplo n.º 22
0
 public CWindowsNT1VolB(CBackupStream Reader)
 {
     FileSystemFlags = Reader.ReadUInt32();
     NTBackupSetAttributes = Reader.ReadUInt32();
 }
Exemplo n.º 23
0
 public CWindowsNT1File(CBackupStream Reader)
 {
     FileAttributes = Reader.ReadUInt32();
     ShortNameOffset = Reader.ReadUInt16();
     ShortNameSize = Reader.ReadUInt16();
     NTFileFlags = Reader.ReadUInt32();
 }
Exemplo n.º 24
0
 public CWindowsNT1DirB(CBackupStream Reader)
 {
     DirectoryAttributes = Reader.ReadUInt32();
     ShortNameOffset = Reader.ReadUInt16();
     ShortNameSize = Reader.ReadUInt16();
 }
Exemplo n.º 25
0
 public CWindowsNT0File(CBackupStream Reader)
 {
     FileAttributes = Reader.ReadUInt32();
     ShortNameOffset = Reader.ReadUInt16();
     ShortNameSize = Reader.ReadUInt16();
     IsLink = Reader.ReadInt16();
     Reserved = Reader.ReadUInt16();
 }
Exemplo n.º 26
0
 public CWindowsNT0DirB(CBackupStream Reader)
 {
     DirectoryAttributes = Reader.ReadUInt32();
 }
Exemplo n.º 27
0
 public COS2File(CBackupStream Reader)
 {
     FileAttributes = Reader.ReadUInt32();
 }
Exemplo n.º 28
0
        byte[] Volume; // 17 bytes

        #endregion Fields

        #region Constructors

        public CNetwareSMSFile(CBackupStream Reader)
        {
            FileAttributes = Reader.ReadUInt32();
            Modified = Reader.ReadInt16();
            CreatorNameSpace = Reader.ReadUInt32();
            Volume = Reader.ReadBytes(17);
        }
Exemplo n.º 29
0
 public COS2DirB(CBackupStream Reader)
 {
     DirectoryAttributes = Reader.ReadUInt32();
 }
Exemplo n.º 30
0
        byte[] Volume; // 18 bytes

        #endregion Fields

        #region Constructors

        public CNetwareSMEDirB(CBackupStream Reader)
        {
            DirectoryAttributes = Reader.ReadUInt32();
            CreatorNameSpace = Reader.ReadUInt32();
            Volume = Reader.ReadBytes(18);
            Modified = Reader.ReadInt16();
        }
Exemplo n.º 31
0
 public CNetwareFile(CBackupStream Reader)
 {
     OwnerID = Reader.ReadUInt32();
     FileAttributes = Reader.ReadUInt32();
     LastModiferID = Reader.ReadUInt32();
     ArchiverID = Reader.ReadUInt32();
     InheritedRights = Reader.ReadUInt16();
 }
Exemplo n.º 32
0
 public CNetwareDirB(CBackupStream Reader)
 {
     OwnerID = Reader.ReadUInt32();
     DirectoryAttributes = Reader.ReadUInt32();
     MaximumSpace = Reader.ReadUInt32();
     InheritedRights = Reader.ReadUInt16();
 }
Exemplo n.º 33
0
 public COS2File(CBackupStream Reader)
 {
     FileAttributes = Reader.ReadUInt32();
 }
Exemplo n.º 34
0
 public CWindows95DirB(CBackupStream Reader)
 {
     DirectoryAttributes = Reader.ReadUInt32();
     ShortNameOffset     = Reader.ReadUInt16();
     ShortNameSize       = Reader.ReadUInt16();
 }
Exemplo n.º 35
0
 public CWindowsNT1VolB(CBackupStream Reader)
 {
     FileSystemFlags       = Reader.ReadUInt32();
     NTBackupSetAttributes = Reader.ReadUInt32();
 }
Exemplo n.º 36
0
 public CWindowsNT0DirB(CBackupStream Reader)
 {
     DirectoryAttributes = Reader.ReadUInt32();
 }
Exemplo n.º 37
0
 public COS2DirB(CBackupStream Reader)
 {
     DirectoryAttributes = Reader.ReadUInt32();
 }