Documentation ¶
Overview ¶
Package leb128 implements the Variable Length Data encoding method as required by the DWARF debugging format.
We only need to decode LEB128 nubers not encode them.
Details of the method can be found in the DWARF4 Standard on page 161, "7.6 Variable Length Data".
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeSLEB128 ¶
LEB128 decoding algorithm taken from page 218 of "DWARF4 Standard", figure 47
returns decoded value and the number of bytes consumed from the encoded array
func DecodeULEB128 ¶
ULEB128 decoding algorithm taken from page 218 of "DWARF4 Standard", figure 46
returns decoded value and the number of bytes consumed from the encoded array
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.