Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BITMASK = []byte{
0x01,
0x03,
0x07,
0x0F,
0x1F,
0x3F,
0x7F,
0xFF,
}
Functions ¶
func DecodeUInt ¶
DecodeUInt decodes the array of bytes and returns an unsigned 64-bit integer
func DecodeUIntRev ¶
DecodeUIntRev decodes the varint encoded by EncodeUIntRev[InPlace]
func EncodeInt ¶
EncodeInt encodes the signed 64-bit integer value into a varint and returns an array of bytes (little endian encoded)
func EncodeUInt ¶
EncodeUInt encodes the unsigned 64-bit integer value into a varint and returns an array of bytes (little endian encoded)
func EncodeUIntRevInPlace ¶
EncodeUIntRevInPlace encodes the uint64 value into a reversed-varint in place, produce the same result as slices.Reverse(EncodeUInt(x))
func GetEncodeUIntSize ¶
GetEncodeUIntSize returns the size in byte the encoded varint will take
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.