hexUtil

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BigEndian

func BigEndian(hexStr string) string

func CheckSum

func CheckSum(cmd string) string

func CheckSumCode

func CheckSumCode(b []byte) uint16

func Date

func Date(hexStr string) time.Time

func DecodeBinaryText

func DecodeBinaryText(hexStr string) string

func DecodeBytes

func DecodeBytes(hexStr string) []byte

func DecodeFloat

func DecodeFloat(hexStr string) float64

func DecodeNumber

func DecodeNumber(hexStr string) int64

func DecodeText

func DecodeText(hexStr string) string

func EncodeFloat

func EncodeFloat(num float64) string

func EncodeHexText

func EncodeHexText(b interface{}) string

func EncodeNumber

func EncodeNumber(num int64) string

func Int64ToBigEndian

func Int64ToBigEndian(n int64) string

func ParseDate

func ParseDate(hexStr string, format string) time.Time

Types

This section is empty.

Jump to

Keyboard shortcuts

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