fn testLeb128(comptime T: type, encoded: []const u8) !T
T: type
encoded: []const u8
2300 2301 2302 2303 2304 2305
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; }