package
0.0.0-20240822151632-80d3ddb3b9e9
Repository: https://github.com/eresh-tech/smgn.git
Documentation: pkg.go.dev

# Functions

新建一个缓冲区.
NewHeaderLenDecoder 创建基于头部长度的解码器 headerLen TCP包的头部内容,用来描述这个包的字节长度 readMaxLen 所读取的客户端包的最大长度,客户端发送的包不能超过这个长度.
No description provided by the author
NewUvarintDecoder 创建基于头部长度的解码器.
NewUvarintEncoder 创建基于Uvarint的编码器 writeBufferLen 服务器发送给客户端包的建议长度,当发送的包小于这个值时,会利用到内存池优化.

# Variables

No description provided by the author

# Structs

读缓冲区,每个长连接独占1个.

# Interfaces

解码器.
编码器.