示例#1
0
 public CDataStream(CBackupStream Reader)
 {
     Header = new CStreamHeader(Reader);
     Data = Reader.ReadBytes((int)Header.StreamLength);
     // Ensure that we are on the 4 byte boundary
     long nullbytecount = (4 - (Reader.BaseStream.Position % 4)) % 4;
     Reader.BaseStream.Seek(nullbytecount, System.IO.SeekOrigin.Current);
 }
示例#2
0
        public CDataStream(CBackupStream Reader)
        {
            Header = new CStreamHeader(Reader);
            Data   = Reader.ReadBytes((int)Header.StreamLength);
            // Ensure that we are on the 4 byte boundary
            long nullbytecount = (4 - (Reader.BaseStream.Position % 4)) % 4;

            Reader.BaseStream.Seek(nullbytecount, System.IO.SeekOrigin.Current);
        }