Documentation
¶
Index ¶
- func Bytes2ToInt64(b []byte) int64
- func Bytes4ToInt64(b []byte) int64
- func Bytes8ToInt64(buf []byte) int64
- func DecHex(n int64) string
- func HexDec(h string) (n int64)
- func IntToBytes1(n int64) []byte
- func IntToBytes2(n int64) []byte
- func IntToBytes4(n int64) []byte
- func IntToBytes8(n int64) []byte
- type Protocol
- func (p *Protocol) DecToHexString(decString []byte) (responseStr string)
- func (p *Protocol) HexStringToByte(hexString string) (responseByte []byte)
- func (p *Protocol) Pack(args ...int64) (ret []byte)
- func (p *Protocol) Pack16(args ...int64) (hString string)
- func (p *Protocol) UnPack(data []byte) []int64
- func (p *Protocol) UnPack16(hString string) (unIntList []int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Protocol ¶
type Protocol struct {
Format []string
}
func (*Protocol) DecToHexString ¶
10进制转16进制字符串
func (*Protocol) HexStringToByte ¶
16进制字符串转字节类型
Click to show internal directories.
Click to hide internal directories.