utilities

package
v0.0.0-...-5f50fa1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Byte4ToFloat

func Byte4ToFloat(in []byte) float32

Byte4ToFloat will convert the little endian 4 byte value into an float

func Byte4ToInt

func Byte4ToInt(in []byte) int

Byte4ToInt will convert the little endian 4 byte value into an int

func Byte4toBitField

func Byte4toBitField(in []byte) string

Byte4toBitField will convert the little endian 8 byte value into a bitfield string value

func Byte8ToFloat

func Byte8ToFloat(in []byte) float64

Byte8ToFloat will convert the little endian 8 byte value into an float

func Byte8ToInt64

func Byte8ToInt64(in []byte) int64

Byte8ToInt will convert the little endian 8 byte value into an int

func BytesToString

func BytesToString(in []byte) string

BytesToString will convert the given bytes to string and remove any additional padding bytes

func CreateGenericMap

func CreateGenericMap[K int | float32 | string | []int | []float32 | []string](toConvert map[int]K) map[int]interface{}

CreateGenericMap transforms the given map to use interface{} values

func GetDistinct

func GetDistinct[K comparable](slice []K) []K

GetDistinct values of a slice

Types

This section is empty.

Directories

Path Synopsis
Package fifo provides FIFO (First In, First Out) fixed-size storage structures.
Package fifo provides FIFO (First In, First Out) fixed-size storage structures.

Jump to

Keyboard shortcuts

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