packet

package
v0.0.0-...-cec807c Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Package

type Package struct {
}

func (*Package) CheckCRC32

func (this *Package) CheckCRC32(l interface{}) uint32

checkCRC32 CRC校验

func (*Package) Pack

func (this *Package) Pack(msg []byte) ([]byte, error)

Pack 封包

func (*Package) UnPack

func (this *Package) UnPack(buff []byte) ([]byte, error)

UnPack 解包

func (*Package) UnPackMsgLength

func (this *Package) UnPackMsgLength(buff []byte) (length uint32)

unPackMsgLength 解包长度

Jump to

Keyboard shortcuts

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