Documentation
¶
Index ¶
- func Byte2Str(src []byte) string
- func FormatTime(timeIns time.Time) string
- func ParseTime(timeStr string) time.Time
- func ReadBCD(pkt []byte, idx *int, n int) string
- func ReadByte(pkt []byte, idx *int) uint8
- func ReadBytes(pkt []byte, idx *int, n int) []byte
- func ReadDoubleWord(pkt []byte, idx *int) uint32
- func ReadGBK(pkt []byte, idx *int, n int) string
- func ReadString(pkt []byte, idx *int, n int) string
- func ReadTime(pkt []byte, idx *int) *time.Time
- func ReadWord(pkt []byte, idx *int) uint16
- func Str2Byte(src string) []byte
- func WriteBCD(pkt []byte, bcd string) []byte
- func WriteByte(pkt []byte, num uint8) []byte
- func WriteBytes(pkt, arr []byte) []byte
- func WriteDoubleWord(pkt []byte, num uint32) []byte
- func WriteGBK(pkt []byte, str string) []byte
- func WriteString(pkt []byte, str string) []byte
- func WriteTime(pkt []byte, timeIns time.Time) []byte
- func WriteWord(pkt []byte, num uint16) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatTime ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.