package
0.6.41
Repository: https://github.com/revzim/nano.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

A Decoder reads and decodes network data slice.