Documentation
¶
Index ¶
- Constants
- type Codec
- func (c *Codec) Format(arg interface{}) ([]byte, error)
- func (c *Codec) GetContentData(data []byte) []byte
- func (c *Codec) ParseContent(data []byte, content interface{}) error
- func (c *Codec) ParseOpCode(data []byte) (uint32, error)
- func (c *Codec) ParseRecv(data []byte) ([]uint64, error)
- func (c *Codec) ParseRecvLen(data []byte) (uint16, error)
- func (c *Codec) ParseSender(data []byte) (uint64, error)
- func (c *Codec) ParseTotalLen(data []byte) (uint16, error)
- func (c *Codec) UnFormat(data []byte, arg interface{}) error
- func (c *Codec) Version() string
- type Messager
Constants ¶
View Source
const MsgLenLen int = 2
View Source
const MsgOpcodeLen int = 4
View Source
const MsgRecvLenLen int = 2
View Source
const MsgSenderLen int = 8
View Source
const VERSION string = "4.0.0"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.