utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes2Float32

func Bytes2Float32(b []byte) float32

func Bytes2Float64

func Bytes2Float64(b []byte) float64

func Bytes2Int

func Bytes2Int(b []byte) int

func Bytes2Int32

func Bytes2Int32(b []byte) int32

func Bytes2Int64

func Bytes2Int64(b []byte) int64

func Bytes2String

func Bytes2String(b []byte) string

func Bytes2Uint

func Bytes2Uint(b []byte) uint

func Bytes2Uint32

func Bytes2Uint32(b []byte) uint32

func Bytes2Uint64

func Bytes2Uint64(b []byte) uint64

func BytesToValueFields

func BytesToValueFields(in [][]byte) []valueField

BytesToValueFields - converts [][]byte to []valueField

func ParseHEXStrToUint64

func ParseHEXStrToUint64(p []byte) uint64

func ParseIP

func ParseIP(p []byte) netip.Addr

func ParseMAC

func ParseMAC(p []byte) net.HardwareAddr

func ParseMask

func ParseMask(p []byte) netip.Prefix

func SplitPosRow

func SplitPosRow(p []byte) posRow

func SplitPosRowBy

func SplitPosRowBy(p []byte, sep []byte) posRow

func SplitPosRows

func SplitPosRows(p []byte) posRows

Types

This section is empty.

Jump to

Keyboard shortcuts

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