util

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delta added in v0.3.0

func Delta(in []uint32, out []uint32)

func GenUint32 added in v0.2.0

func GenUint32(n int) []uint32

func GetDeltaVarint added in v0.3.0

func GetDeltaVarint(in []byte, out []uint32, prev uint32) int

func GetVarint added in v0.2.0

func GetVarint(data []byte, out []uint32) int

func PutDeltaVarint added in v0.3.0

func PutDeltaVarint(nums []uint32, out []byte, prev uint32) int

func PutVarint added in v0.2.0

func PutVarint(nums []uint32, out []byte) int

func RandUint32 added in v0.2.0

func RandUint32() uint32

RandUint32 generates a random number that is also uniformly random on the axis for the number of bytes required to encode it. It first randomly chooses a byte length, i.e. 1, 2, 3 or 4 and then randomly generates a number whose encoded length would be that length.

func SilentClose

func SilentClose(closer io.Closer)

func SortUint32 added in v0.2.0

func SortUint32(in []uint32)

Types

This section is empty.

Jump to

Keyboard shortcuts

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