msgParser

package
v0.0.0-...-bd0de05 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MsgParser

type MsgParser struct {
	// contains filtered or unexported fields
}

-------------- | len | data | --------------

func NewMsgParser

func NewMsgParser() *MsgParser

func (*MsgParser) Decode

func (this *MsgParser) Decode(head []byte, reader *bufio.Reader) ([]byte, error)

解码

func (*MsgParser) Encode

func (this *MsgParser) Encode(data []byte) ([]byte, error)

编码

func (*MsgParser) Transform

func (this *MsgParser) Transform(value []byte) uint32

Jump to

Keyboard shortcuts

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