util

package
v0.0.0-...-d85f73f Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToSTBytes

func BytesToSTBytes(v []byte) (ret [16]byte)

func CheckUin

func CheckUin(uin uint64) bool

func CheckUsername

func CheckUsername(username string) bool

func DumpClientToServerMessage

func DumpClientToServerMessage(
	c2s *codec.ClientToServerMessage,
	msg interface{},
)

func DumpServerIP

func DumpServerIP(u uint32)

func DumpServerToClientMessage

func DumpServerToClientMessage(
	s2c *codec.ServerToClientMessage,
	msg interface{},
)

func GetServerTime

func GetServerTime() uint32

func HashToBraceString

func HashToBraceString(p []byte) string

func HashToString

func HashToString(p []byte) string

func ParseExtToPictureType

func ParseExtToPictureType(ext string) int32

func ReadLine

func ReadLine(rd *bufio.Reader) (string, error)

func STBytesTobytes

func STBytesTobytes(v [16]byte) (ret []byte)

func SetServerTime

func SetServerTime(v uint32)

Types

This section is empty.

Jump to

Keyboard shortcuts

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