crc

package
v0.0.0-...-2ec961a Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MbTable = []uint16{}/* 256 elements not displayed */

Functions

func BytesToInt

func BytesToInt(b []byte, big_flag bool) int

字节转换成整形

func BytesToIntS

func BytesToIntS(b []byte) (int, error)

字节数(大端)组转成int(有符号)

func BytesToIntU

func BytesToIntU(b []byte, big_flag bool) (int, error)

func BytesToInteger

func BytesToInteger(b []byte, big_flag bool) (int, error)

func BytesToUInt

func BytesToUInt(b []byte, big_flag bool) uint

字节转换成整形

func BytesToUInt16

func BytesToUInt16(b []byte, big_flag bool) uint16

字节转换成整形

func BytesToUInt32

func BytesToUInt32(b []byte, big_flag bool) uint32

字节转换成整形

func CheckSum

func CheckSum(data []byte) uint16

func Int16ToBytes

func Int16ToBytes(n int, big_flag bool) []byte

整形转换成字节

func IntToBytes

func IntToBytes(n int, big_flag bool) []byte

整形转换成字节

func Uint16To4xString

func Uint16To4xString(data uint16) string

func Uint16ToBigBinBytes

func Uint16ToBigBinBytes(n uint16) []byte

func Uint16ToBinBytes

func Uint16ToBinBytes(n uint16) []byte

func Uint16ToBytes

func Uint16ToBytes(n uint16) []byte

func Uint16ToString

func Uint16ToString(data uint16) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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