util

package
v0.0.0-...-7501a2d Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(condition bool, reason string)

func BinaryPutFloat64

func BinaryPutFloat64(b []byte, byteOrder binary.ByteOrder, f float64)

func BinaryPutFloat64Slice

func BinaryPutFloat64Slice(outBuffer []byte, byteOrder binary.ByteOrder, floats []float64) error

func CeilingPowerOf2

func CeilingPowerOf2(x int32) int32

func ComputeBaseBufferItems

func ComputeBaseBufferItems(k int32, n int64) int32

func ComputeBitPattern

func ComputeBitPattern(k int32, n int64) int64

func ComputeNumLevelsNeeded

func ComputeNumLevelsNeeded(k int32, n int64) int32

func ComputeRetainedItems

func ComputeRetainedItems(k int32, n int64) int32

func ComputeTotalLevels

func ComputeTotalLevels(bitPattern int64) int32

func ComputeValidLevels

func ComputeValidLevels(bitPattern int64) int32

func DetermineNativeByteOrder

func DetermineNativeByteOrder() binary.ByteOrder

func Intmax

func Intmax(a, b int32) int32

func Intmin

func Intmin(a, b int32) int32

func IsPowerOf2

func IsPowerOf2(x int32) bool

func LowestZeroBitStartingAt

func LowestZeroBitStartingAt(bits int64, startingBit int32) int32

Types

This section is empty.

Jump to

Keyboard shortcuts

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