util

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes2HexString

func Bytes2HexString(b []byte) string

Bytes2HexString bytes转16进制字符串

func DecodeBig5

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

DecodeBig5 convert BIG5 to UTF-8

func DecodeGBK

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

DecodeGBK convert GBK to UTF-8

func EncodeBig5

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

EncodeBig5 convert UTF-8 to BIG5

func EncodeGBK

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

EncodeGBK convert UTF-8 to GBK

func GetVolume

func GetVolume(ivol int) float64

func GetVolume2

func GetVolume2[T uint16 | uint32 | float32](v T) float64

func HexString2Bytes

func HexString2Bytes(hexStr string) []byte

HexString2Bytes 16进制字符串转bytes

func Utf8ToGbk added in v1.3.0

func Utf8ToGbk(text []byte) string

Utf8ToGbk utf8 转gbk

func ZlibCompress

func ZlibCompress(src []byte) ([]byte, error)

ZlibCompress 进行zlib压缩

func ZlibUnCompress

func ZlibUnCompress(compressSrc []byte) ([]byte, error)

ZlibUnCompress 进行zlib解压缩

Types

This section is empty.

Jump to

Keyboard shortcuts

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