Пример #1
0
 public CCorruptObjectDescriptorBlock(CBackupStream Reader)
 {
     base.ReadData(Reader);
     CFilAttributes     = (ECFilAttributes)Reader.ReadUInt32();
     Reserved           = Reader.ReadUInt64();
     StreamOffset       = Reader.ReadUInt64();
     CorrupStreamNumber = Reader.ReadUInt16();
     base.ReadStreams(Reader);
 }
Пример #2
0
 public CEndOfDataSetDescriptorBlock(CBackupStream Reader)
 {
     base.ReadData(Reader);
     ESETAttributes         = (ESSETAttributes)Reader.ReadUInt32();
     NumberOfCorruptFiles   = Reader.ReadUInt32();
     ReservedforMBC1        = Reader.ReadUInt64();
     ReservedforMBC2        = Reader.ReadUInt64();
     FDDMediaSequenceNumber = Reader.ReadUInt16();
     DataSetNumber          = Reader.ReadUInt16();
     MediaWriteDate         = Reader.ReadDate();
     base.ReadStreams(Reader);
 }
Пример #3
0
        /// <summary>
        /// Read block header.
        /// </summary>
        protected void ReadData(CBackupStream Reader)
        {
            StartPosition = Reader.BaseStream.Position;
            Streams       = new System.Collections.Generic.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();
        }
Пример #4
0
            public CStreamHeader(CBackupStream Reader)
            {
                // Check for EOF
                if (Reader.BaseStream.Position + 22 >= Reader.BaseStream.Length)
                {
                    StreamID = "";
                    return;
                }

                StreamID = Reader.ReadFixedSizeString(4, EStringType.ANSI);

                StreamFileSystemAttributes = (EStreamFileSystemAttributes)Reader.ReadUInt16();
                StreamMediaFormatAttributes = (EStreamMediaFormatAttributes)Reader.ReadUInt16();
                StreamLength = Reader.ReadUInt64();
                DataEncryptionAlgorithm = Reader.ReadUInt16();
                DataCompressionAlgorithm = Reader.ReadUInt16();
                Checksum = Reader.ReadUInt16();
            }
Пример #5
0
            public ushort Checksum; // Stream data follow immediately after the Checksum field.

            public CStreamHeader(CBackupStream Reader)
            {
                // Check for EOF
                if (Reader.BaseStream.Position + 22 >= Reader.BaseStream.Length)
                {
                    StreamID = "";
                    return;
                }

                StreamID = Reader.ReadFixedSizeString(4, EStringType.ANSI);

                StreamFileSystemAttributes  = (EStreamFileSystemAttributes)Reader.ReadUInt16();
                StreamMediaFormatAttributes = (EStreamMediaFormatAttributes)Reader.ReadUInt16();
                StreamLength             = Reader.ReadUInt64();
                DataEncryptionAlgorithm  = Reader.ReadUInt16();
                DataCompressionAlgorithm = Reader.ReadUInt16();
                Checksum = Reader.ReadUInt16();
            }
Пример #6
0
 public CStartOfDataSetDescriptorBlock(CBackupStream Reader)
 {
     base.ReadData(Reader);
     SSETAttributes = (ESSETAttributes)Reader.ReadUInt32();
     PasswordEncryptionAlgorithm  = Reader.ReadUInt16();
     SoftwareCompressionAlgorithm = Reader.ReadUInt16();
     SoftwareVendorID             = Reader.ReadUInt16();
     DataSetNumber        = Reader.ReadUInt16();
     DataSetName          = Reader.ReadString(StartPosition, StringType);
     DataSetDescription   = Reader.ReadString(StartPosition, StringType);
     DataSetPassword      = Reader.ReadString(StartPosition, StringType);
     UserName             = Reader.ReadString(StartPosition, StringType);
     PhysicalBlockAddress = Reader.ReadUInt64();
     MediaWriteDate       = Reader.ReadDate();
     SoftwareMajorVersion = Reader.ReadByte();
     SoftwareMinorVersion = Reader.ReadByte();
     MTFTimeZone          = Reader.ReadSByte();
     MTFMinorVersion      = Reader.ReadByte();
     MediaCatalogVersion  = Reader.ReadByte();
     base.ReadStreams(Reader);
 }
Пример #7
0
 public CEndOfTapeMarkerDescriptorBlock(CBackupStream Reader)
 {
     base.ReadData(Reader);
     LastESETPBA = Reader.ReadUInt64();
     base.ReadStreams(Reader);
 }
Пример #8
0
 public CStartOfDataSetDescriptorBlock(CBackupStream Reader)
 {
     base.ReadData(Reader);
     SSETAttributes = (ESSETAttributes)Reader.ReadUInt32();
     PasswordEncryptionAlgorithm = Reader.ReadUInt16();
     SoftwareCompressionAlgorithm = Reader.ReadUInt16();
     SoftwareVendorID = Reader.ReadUInt16();
     DataSetNumber = Reader.ReadUInt16();
     DataSetName = Reader.ReadString(StartPosition, StringType);
     DataSetDescription = Reader.ReadString(StartPosition, StringType);
     DataSetPassword = Reader.ReadString(StartPosition, StringType);
     UserName = Reader.ReadString(StartPosition, StringType);
     PhysicalBlockAddress = Reader.ReadUInt64();
     MediaWriteDate = Reader.ReadDate();
     SoftwareMajorVersion = Reader.ReadByte();
     SoftwareMinorVersion = Reader.ReadByte();
     MTFTimeZone = Reader.ReadSByte();
     MTFMinorVersion = Reader.ReadByte();
     MediaCatalogVersion = Reader.ReadByte();
     base.ReadStreams(Reader);
 }
Пример #9
0
 public CEndOfTapeMarkerDescriptorBlock(CBackupStream Reader)
 {
     base.ReadData(Reader);
     LastESETPBA = Reader.ReadUInt64();
     base.ReadStreams(Reader);
 }
Пример #10
0
 public CEndOfDataSetDescriptorBlock(CBackupStream Reader)
 {
     base.ReadData(Reader);
     ESETAttributes = (ESSETAttributes)Reader.ReadUInt32();
     NumberOfCorruptFiles = Reader.ReadUInt32();
     ReservedforMBC1 = Reader.ReadUInt64();
     ReservedforMBC2 = Reader.ReadUInt64();
     FDDMediaSequenceNumber = Reader.ReadUInt16();
     DataSetNumber = Reader.ReadUInt16();
     MediaWriteDate = Reader.ReadDate();
     base.ReadStreams(Reader);
 }
Пример #11
0
        /// <summary>
        /// Read block header.
        /// </summary>
        protected void ReadData(CBackupStream Reader)
        {
            StartPosition = Reader.BaseStream.Position;
            Streams = new System.Collections.Generic.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();
        }
Пример #12
0
 public CCorruptObjectDescriptorBlock(CBackupStream Reader)
 {
     base.ReadData(Reader);
     CFilAttributes = (ECFilAttributes)Reader.ReadUInt32();
     Reserved = Reader.ReadUInt64();
     StreamOffset = Reader.ReadUInt64();
     CorrupStreamNumber = Reader.ReadUInt16();
     base.ReadStreams(Reader);
 }