▲ | zigzag312 7 days ago | ||||||||||||||||||||||
It looks similar to how vint64 lib encodes varints. Total length of varint can be determined via the first byte alone. | |||||||||||||||||||||||
▲ | haberman 7 days ago | parent [-] | ||||||||||||||||||||||
I advocated for PrefixVarint (which seems equivalent to vint64 ) for WebAssembly, but it was decided against, in favor of LEB128: https://github.com/WebAssembly/design/issues/601 The recent CREL format for ELF also uses the more established LEB128: https://news.ycombinator.com/item?id=41222021 At this point I don't feel like I have a clear opinion about whether PrefixVarint is worth it, compared with LEB128. | |||||||||||||||||||||||
|