Documentation ¶
Index ¶
- Variables
- func Bytes2HexString(b []byte) string
- func DecodeBig5(s []byte) ([]byte, error)
- func DecodeGBK(s []byte) ([]byte, error)
- func DecodeVarint(b []byte, pos *int) int
- func EncodeBig5(s []byte) ([]byte, error)
- func EncodeGBK(s []byte) ([]byte, error)
- func Float64IsNaN(f float64) bool
- func GetDatetime(category int, b []byte, pos *int) (year int, month int, day int, hour int, minute int)
- func GetDatetimeFromUint32(category int, zipday uint32, tminutes uint16) (year int, month int, day int, hour int, minute int)
- func GetTime(b []byte, pos *int) (h uint16, m uint16)
- func HexString2Bytes(hexStr string) []byte
- func IntToFloat64[T ~uint32 | ~int | ~int64](integer T) float64
- func NumberToFloat64[T uint16 | uint32 | float32](v T) float64
- func RegisterBaseUnitFunction(f unitHandler)
- func SequenceId() uint32
- func TimeFromInt(stamp int) string
- func Utf8ToGbk(text []byte) string
- func ZlibCompress(src []byte) ([]byte, error)
- func ZlibUnCompress(compressSrc []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
BaseUnit unitHandler = defaultBaseUnit
)
Functions ¶
func DecodeVarint ¶
DecodeVarint pytdx : 类似utf-8的编码方式保存有符号数字
func GetDatetime ¶
func GetDatetimeFromUint32 ¶
func IntToFloat64 ¶
IntToFloat64 整型转float64
func RegisterBaseUnitFunction ¶ added in v1.19.5
func RegisterBaseUnitFunction(f unitHandler)
func TimeFromInt ¶
func ZlibUnCompress ¶
ZlibUnCompress 进行zlib解压缩
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.