public byte[] getBytes(FileStream stream) //MemoryStream { var r = new BinaryBigEndian(stream); r.BaseStream.Seek(offset, SeekOrigin.Begin); return(r.ReadBytes(size)); }
private byte[] ReadBytes(int bytes) { return(stream.ReadBytes(bytes)); }
private string ReadString(BinaryBigEndian r) { var len = r.ReadByte(); return(Encoding.ASCII.GetString(r.ReadBytes(len))); }