package leb128
import "golang.org/x/debug/third_party/delve/dwarf/leb128"
Package leb128 provides encoders and decoders for The Little Endian Base 128 format. The Little Endian Base 128 format is defined in the DWARF v4 standard, section 7.6, page 161 and following.
Index ¶
- func DecodeSigned(buf Reader) (int64, uint32)
- func DecodeUnsigned(buf Reader) (uint64, uint32)
- func EncodeSigned(out io.ByteWriter, x int64)
- func EncodeUnsigned(out io.ByteWriter, x uint64)
- type Reader
Functions ¶
func DecodeSigned ¶
DecodeSigned decodes a signed Little Endian Base 128 represented number.
func DecodeUnsigned ¶
DecodeUnsigned decodes an unsigned Little Endian Base 128 represented number.
func EncodeSigned ¶
func EncodeSigned(out io.ByteWriter, x int64)
EncodeSigned encodes x to the signed Little Endian Base 128 format.
func EncodeUnsigned ¶
func EncodeUnsigned(out io.ByteWriter, x uint64)
EncodeUnsigned encodes x to the unsigned Little Endian Base 128 format.
Types ¶
type Reader ¶
type Reader interface { io.ByteReader io.Reader Len() int }
Reader is a io.ByteReader with a Len method. This interface is satisfied by both bytes.Buffer and bytes.Reader.
Source Files ¶
decode.go doc.go encode.go
- Version
- v0.0.0-20250223200816-04bfb7cc7686 (latest)
- Published
- Feb 23, 2025
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 1 month ago –
Tools for package owners.