keep up with zig
keep up with build system
add CI
Encoding and decoding of variable-length signed and unsigned integers using the Unsigned Little Endian Base 128 (ULEB128).
There's functions for encoding and decoding using writers and readers, as well as functions that work on slices.
var buf: [4]u8 = undefined;
const x: u64 = 42;
const encoded = try encodeVarUintSlice(&buf, x);
const decoded = try decodeVarUintSlice(encoded);
try testing.expectEqual(x, decoded);