protobuf在netty里面的应用举例

netty为protobuf提供了两个编码器(ProtobufEncoder,ProtobufVarint32LengthFieldPrepender),两个解码器(ProtobufVarint32FrameDecoder,ProtobufDecoder) [注]所谓的编码就是把应用程序使用的数据类型编码成在网络上传输的二进制字节流,反之同理。 看一个netty官网上提供的一个使用protobuf
相关文章
相关标签/搜索