gimli-rs / leb128

Read and write DWARF's "Little Endian Base 128" variable length integer encoding
http://gimli-rs.github.io/leb128/leb128/index.html
Apache License 2.0
18 stars 15 forks source link

Add a REPL for inspecting how numbers get converted to LEB128 #3

Closed fitzgen closed 6 years ago

fitzgen commented 6 years ago

I found this useful for trying to guage the impact of https://github.com/rust-lang-nursery/rust-wasm/issues/81#issuecomment-371617046 for example, and I imagine it would be useful for anyone working with LEB128 in general.

fitzgen commented 6 years ago

For the purpose of determining lengths though, isn't it just 7 bits per byte?

...yes... >_<