update 电单车协议

This commit is contained in:
Guoqs
2024-08-03 16:59:31 +08:00
parent 01770b2123
commit 6345314725
6 changed files with 117 additions and 170 deletions

View File

@@ -17,6 +17,7 @@ public class StartAndLengthFieldFrameDecoder extends ByteToMessageDecoder {
public StartAndLengthFieldFrameDecoder() {}
protected void decode(ChannelHandlerContext ctx, ByteBuf buffer, List<Object> out) throws Exception {
log.info("StartAndLengthFieldFrameDecoder.decode");
// 记录包头开始的index
int beginReader;