fn testLeb128(comptime T: type, encoded: []const u8) !T
fn testLeb128(comptime T: type, encoded: []const u8) !T { var reader: std.Io.Reader = .fixed(encoded); const result = reader.takeLeb128(T); try testing.expectEqual(reader.seek, reader.end); return result; }