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(); }
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(); }