ltype

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteToDword

func ByteToDword(byte0, byte1, byte2, byte3 int) int

ByteToDword 无符号四字节整型

func ByteToWord

func ByteToWord(byte0, byte1 int) int

ByteToWord 无符号双字节整型

func BytesToString

func BytesToString(origin []byte) string

BytesToString []byte 去除空数据(0), (ASCII)再转成字符

func HexToBytes

func HexToBytes(str string) (resp []byte, err error)

HexToBytes 字符串转Bytes

func StringToByte

func StringToByte(str string) (resp []byte, err error)

StringToByte 字符串转Bytes

func UTF8ToGBK

func UTF8ToGBK(s []byte) ([]byte, error)

UTF8ToGBK UTF8ToGBK

Types

type BCD

type BCD = []byte

BCD 类型

type DWORD

type DWORD = uint32

DWORD 类型

type WORD

type WORD = uint16

WORD 类型

Jump to

Keyboard shortcuts

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