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