Пример #1
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();
        }
Пример #2
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();
 }
Пример #3
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();
        }
Пример #4
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();
 }
 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);
 }
        /// <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 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);
 }