package
0.0.12
Repository: https://github.com/revzim/go-pomelo-client.git
Documentation: pkg.go.dev

# Functions

Encode create a packet.Packet from the raw bytes slice and then encode to network bytes slice Protocol refs: https://github.com/NetEase/pomelo/wiki/Communication-Protocol -<type>-|--------<length>--------|-<data>- --------|------------------------|-------- 1 byte packet type, 3 bytes packet data length(big end), and data segment.
NewDecoder -- returns a new decoder that used for decode network bytes slice.

# Constants

Codec constants.
Codec constants.

# Variables

ErrPacketSizeExcced is the error used for encode/decode.

# Structs

Decoder -- reads and decodes network data slice.