Пример #1
0
 public int ReadChunkInt(long length)
 {
     return(LEB128.ReadInt(_reader));
 }
Пример #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.
        }