cmpputils

package
v0.0.0-...-d0e3428 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidUtf8Rune = errors.New("Not Invalid Utf8 runes")

Functions

func GB18030ToUtf8

func GB18030ToUtf8(in string) (string, error)

func IsBigEndian

func IsBigEndian() bool

func OctetString

func OctetString(s string, fixedLength int) string

func TimeStamp2Str

func TimeStamp2Str(t uint32) string

TimeStamp2Str converts a timestamp(MMDDHHMMSS) int to a string(10 bytes).

func Ucs2ToUtf8

func Ucs2ToUtf8(in string) (string, error)

func Utf8ToGB18030

func Utf8ToGB18030(in string) (string, error)

func Utf8ToUcs2

func Utf8ToUcs2(in string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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