Documentation
¶
Index ¶
- func Delta(in []uint32, out []uint32)
- func GenUint32(n int) []uint32
- func GetDeltaVarint(in []byte, out []uint32, prev uint32) int
- func GetVarint(data []byte, out []uint32) int
- func PutDeltaVarint(nums []uint32, out []byte, prev uint32) int
- func PutVarint(nums []uint32, out []byte) int
- func RandUint32() uint32
- func SilentClose(closer io.Closer)
- func SortUint32(in []uint32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PutDeltaVarint ¶ added in v0.3.0
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 SortUint32 ¶ added in v0.2.0
func SortUint32(in []uint32)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.