dencoding

package
v0.0.0-...-9473d91 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BITMASK = []byte{
	0x01,
	0x03,
	0x07,
	0x0F,
	0x1F,
	0x3F,
	0x7F,
	0xFF,
}

Functions

func DecodeUInt

func DecodeUInt(vint []byte) uint64

DecodeUInt decodes the array of bytes and returns an unsigned 64 bit integer

func EncodeUInt

func EncodeUInt(x uint64) []byte

EncodeInt encodes the unsigned 64 bit integer value into a varint and returns an array of bytes (little endian encoded)

Types

This section is empty.

Jump to

Keyboard shortcuts

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