Example #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);
 }
Example #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);
        }