fn countLeb128(reader: *Reader, comptime T: type, counter: *u64, hasher: *Crc32) !T 311
312
313
314
315
316
317
318
319fn countLeb128(reader: *Reader, comptime T: type, counter: *u64, hasher: *Crc32) !T {
try reader.fill(8);
const start = reader.seek;
const result = try reader.takeLeb128(T);
const read_slice = reader.buffer[start..reader.seek];
hasher.update(read_slice);
counter.* += read_slice.len;
return result;
}