utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Binary2Float32

func Binary2Float32(data []byte) (float32, error)

func Binary2Float64

func Binary2Float64(data []byte) (float64, error)

func Binary2Int16

func Binary2Int16(data []byte) (int16, error)

func Binary2Int32

func Binary2Int32(data []byte) (int32, error)

func Binary2Int64

func Binary2Int64(data []byte) (int64, error)

func Binary2UInt16

func Binary2UInt16(data []byte) (uint16, error)

func Binary2UInt32

func Binary2UInt32(data []byte) (uint32, error)

func Binary2UInt64

func Binary2UInt64(data []byte) (uint64, error)

func CheckFloat32Special

func CheckFloat32Special(value float32) bool

func CheckFloat64Special

func CheckFloat64Special(value float64) bool

func Float32CheckOver

func Float32CheckOver(value, delta float32) bool

func Float32toBinary

func Float32toBinary(value float32) []byte

func Float64CheckOver

func Float64CheckOver(value, delta float64) bool

func Float64toBinary

func Float64toBinary(value float64) []byte

func Int16CheckOver

func Int16CheckOver(value, delta int16) bool

func Int16toBinary

func Int16toBinary(value int16) []byte

func Int32CheckOver

func Int32CheckOver(value, delta int32) bool

func Int32toBinary

func Int32toBinary(value int32) []byte

func Int64CheckOver

func Int64CheckOver(value, delta int64) bool

func Int64toBinary

func Int64toBinary(value int64) []byte

func UInt16CheckOverFlow

func UInt16CheckOverFlow(value, delta uint16) bool

func UInt16toBinary

func UInt16toBinary(value uint16) []byte

func UInt32CheckOverFlow

func UInt32CheckOverFlow(value, delta uint32) bool

func UInt32toBinary

func UInt32toBinary(value uint32) []byte

func UInt64CheckOverFlow

func UInt64CheckOverFlow(value, delta uint64) bool

func UInt64toBinary

func UInt64toBinary(value uint64) []byte

func UintCheckUnderFlow

func UintCheckUnderFlow[T generic.Unsigned](value, delta T) bool

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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