#how to get how many bytes is read or write in leb128 operation,
1 messages · Page 1 of 1 (latest)
I'm not sure what you mean
for example
···
const ss = try leb.readUleb128(u32, reader);
···
but i want to konw how many bytes was read like this
···
const ss, num_bytes = try leb.readUleb128(u32, reader);
···
You could use a counting reader.
is there a builtin one in std?