package leb128

Import Path
	github.com/tetratelabs/wazero/internal/leb128 (on go.dev)

Dependency Relation
	imports 3 packages, and imported by 4 packages

Involved Source Files leb128.go
Package-Level Functions (total 12)
func DecodeInt32(r io.ByteReader) (ret int32, bytesRead uint64, err error)
DecodeInt33AsInt64 is a special cased decoder for wasm.BlockType which is encoded as a positive signed integer, yet still needs to fit the 32-bit range of allowed indices. Hence, this is 33, not 32-bit! See https://webassembly.github.io/spec/core/binary/instructions.html#control-instructions
func DecodeInt64(r io.ByteReader) (ret int64, bytesRead uint64, err error)
func DecodeUint32(r io.ByteReader) (ret uint32, bytesRead uint64, err error)
EncodeInt32 encodes the signed value into a buffer in LEB128 format See https://en.wikipedia.org/wiki/LEB128#Encode_signed_integer
EncodeInt64 encodes the signed value into a buffer in LEB128 format See https://en.wikipedia.org/wiki/LEB128#Encode_signed_integer
EncodeUint32 encodes the value into a buffer in LEB128 format See https://en.wikipedia.org/wiki/LEB128#Encode_unsigned_integer
EncodeUint64 encodes the value into a buffer in LEB128 format See https://en.wikipedia.org/wiki/LEB128#Encode_unsigned_integer
func LoadInt32(buf []byte) (ret int32, bytesRead uint64, err error)
func LoadInt64(buf []byte) (ret int64, bytesRead uint64, err error)
func LoadUint32(buf []byte) (ret uint32, bytesRead uint64, err error)
func LoadUint64(buf []byte) (ret uint64, bytesRead uint64, err error)