Пример #1
0
        public byte[] getBytes(FileStream stream) //MemoryStream
        {
            var r = new BinaryBigEndian(stream);

            r.BaseStream.Seek(offset, SeekOrigin.Begin);
            return(r.ReadBytes(size));
        }
Пример #2
0
 private byte[] ReadBytes(int bytes)
 {
     return(stream.ReadBytes(bytes));
 }
Пример #3
0
        private string ReadString(BinaryBigEndian r)
        {
            var len = r.ReadByte();

            return(Encoding.ASCII.GetString(r.ReadBytes(len)));
        }