Exemplo n.º 1
0
 public int ReadChunkInt(long length)
 {
     return(LEB128.ReadInt(_reader));
 }
Exemplo n.º 2
0
        public static ChunkId FromStream(BinaryReader stream)
        {
            int idLength = LEB128.ReadInt(stream);

            return(new ChunkId(stream.ReadBytes(idLength), idLength)); // If this turns out to be slow, we might want to kind of caching to reuse an array.
        }