Netty protobuf解析2-官方方法解析

关键代码以下java p.addLast(new ProtobufVarint32FrameDecoder());// 解码1. 根据byte 的头长度 来 分割 p.addLast(new ProtobufDecoder( Msg.Person.getDefaultInstance())); //解码2。 byte 转化为 实体类
相关文章
相关标签/搜索