#how to get how many bytes is read or write in leb128 operation,

1 messages · Page 1 of 1 (latest)

past cloud
#

want to get the exact bytes was read or write in leb128 operation.

warm topaz
#

I'm not sure what you mean

past cloud
#

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);
···

warm oasis
#

You could use a counting reader.

past cloud
#

is there a builtin one in std?