leb128

package
v0.0.0-...-5cac5a1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendInt16

func AppendInt16[T Intish](out []byte, value T) []byte

func AppendInt32

func AppendInt32[T Intish](out []byte, value T) []byte

func AppendInt33

func AppendInt33(out []byte, u32 uint32, neg bool) []byte

func AppendInt64

func AppendInt64[T Intish](out []byte, value T) []byte

func AppendInt8

func AppendInt8[T Intish](out []byte, value T) []byte

func AppendIntN

func AppendIntN[T Intish](out []byte, value T, numBits uint) []byte

func AppendUint16

func AppendUint16[T Uintish](out []byte, value T) []byte

func AppendUint32

func AppendUint32[T Uintish](out []byte, value T) []byte

func AppendUint64

func AppendUint64[T Uintish](out []byte, value T) []byte

func AppendUint8

func AppendUint8[T Uintish](out []byte, value T) []byte

func AppendUintN

func AppendUintN[T Uintish](out []byte, value T, numBits uint) []byte

func Int16

func Int16(in []byte) (rest []byte, out int16, ok bool)

func Int32

func Int32(in []byte) (rest []byte, out int32, ok bool)

func Int33

func Int33(in []byte) (rest []byte, out uint32, neg bool, ok bool)

func Int64

func Int64(in []byte) (rest []byte, out int64, ok bool)

func Int8

func Int8(in []byte) (rest []byte, out int8, ok bool)

func IntN

func IntN(in []byte, numBits uint) (rest []byte, out int64, ok bool)

func Len

func Len(in []byte) (uint, bool)

func LenInt

func LenInt[T Intish](value T) uint

func LenUint

func LenUint[T Uintish](value T) uint

func PutInt16

func PutInt16[T Intish](out []byte, value T) uint

func PutInt32

func PutInt32[T Intish](out []byte, value T) uint

func PutInt33

func PutInt33(out []byte, u32 uint32, neg bool) uint

func PutInt64

func PutInt64[T Intish](out []byte, value T) uint

func PutInt8

func PutInt8[T Intish](out []byte, value T) uint

func PutIntN

func PutIntN[T Intish](out []byte, value T, numBits uint) uint

func PutUint16

func PutUint16[T Uintish](out []byte, value T) uint

func PutUint32

func PutUint32[T Uintish](out []byte, value T) uint

func PutUint64

func PutUint64[T Uintish](out []byte, value T) uint

func PutUint8

func PutUint8[T Uintish](out []byte, value T) uint

func PutUintN

func PutUintN[T Uintish](out []byte, value T, numBits uint) uint

func Uint16

func Uint16(in []byte) (rest []byte, out uint16, ok bool)

func Uint32

func Uint32(in []byte) (rest []byte, out uint32, ok bool)

func Uint64

func Uint64(in []byte) (rest []byte, out uint64, ok bool)

func Uint8

func Uint8(in []byte) (rest []byte, out uint8, ok bool)

func UintN

func UintN(in []byte, numBits uint) (rest []byte, out uint64, ok bool)

Types

type Intish

type Intish interface {
	~int64 | ~int32 | ~int16 | ~int8 | ~int
}

type Uintish

type Uintish interface {
	~uint64 | ~uint32 | ~uint16 | ~uint8 | ~uint
}

Jump to

Keyboard shortcuts

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