LEB128 or Little Endian Base 128 is a variable-length code compression used to store arbitrarily large integers in a small number of bytes. LEB128 is used in the DWARF debug file format[1][2] and the WebAssembly binary encoding for all integer literals.[3]
^UNIX International (July 1993), "7.8", DWARF Debugging Information Format Specification Version 2.0, Draft(PDF), retrieved 2009-07-19
^Free Standards Group (December 2005). "DWARF Debugging Information Format Specification Version 3.0" (PDF). p. 70. Retrieved 2009-07-19.
^WebAssembly Community Group (2020-11-12). "Values — Binary Format — WebAssembly 1.1". Retrieved 2020-12-31.
versions of LEB128: unsigned LEB128 and signed LEB128. The decoder must know whether the encoded value is unsigned LEB128 or signed LEB128. To encode an...
integer constants are encoded using a space-efficient, variable-length LEB128 encoding. The WebAssembly text format is more canonically written in a folded...