leb128

package
v0.25.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2023 License: GPL-3.0, GPL-3.0 Imports: 0 Imported by: 0

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

func DecodeSLEB128(encoded []uint8) (int64, int)

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

func DecodeULEB128(encoded []uint8) (uint64, int)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL