leb128

package
v1.0.3002 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeInt32

func DecodeInt32(value []byte) (int32, int)

DecodeInt32 decodes an int32 and returns the number of bytes used from the given leb128 encoded array `value`

func DecodeInt64

func DecodeInt64(value []byte) (int64, int)

DecodeInt64 decodes an int64 and returns the number of bytes used from the given leb128 encoded array `value`

func DecodeUint32

func DecodeUint32(value []byte) (uint32, int)

DecodeUint32 decodes an uint32 and returns the number of bytes used from the given leb128 encoded array `value`

func DecodeUint64

func DecodeUint64(value []byte) (uint64, int)

DecodeUint64 decodes an uint64 and returns the number of bytes used from the given leb128 encoded array `value`

func EncodeInt32

func EncodeInt32(value int32) []byte

EncodeInt32 encodes the `value` as leb128 encoded byte array

func EncodeInt64

func EncodeInt64(value int64) []byte

EncodeInt64 encodes the `value` as leb128 encoded byte array

func EncodeUint32

func EncodeUint32(value uint32) []byte

EncodeUint32 encodes the `value` as leb128 encoded byte array

func EncodeUint64

func EncodeUint64(value uint64) []byte

EncodeUint64 encodes the `value` as leb128 encoded byte array

Types

This section is empty.

Jump to

Keyboard shortcuts

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