public int ReadChunkInt(long length) { return(LEB128.ReadInt(_reader)); }
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. }