//
pkg.gl
Category
github.com/davyxu/cellnet
codec
package
4.2.0+incompatible
Repository:
https://github.com/davyxu/cellnet.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
2
Dependents
41
Files
124 SLOC
#
Packages
binary
No description provided by the author
gogopb
No description provided by the author
httpform
No description provided by the author
httpjson
No description provided by the author
json
No description provided by the author
protoplus
No description provided by the author
#
Functions
DecodeMessage
解码消息.
DecodeMessageByType
No description provided by the author
EncodeMessage
编码消息, 在使用了带内存池的codec中,可以传入session或peer的ContextSet,保存内存池上下文,默认ctx传nil.
FreeCodecResource
No description provided by the author
GetCodec
获取编码器.
MustGetCodec
指定编码器不存在时,报错.
RegisterCodec
注册编码器.
#
Interfaces
CodecRecycler
Codec.Encode内分配的资源,在必要时可以回收,例如内存池对象.