ctx.fireChannelRead(resMetaData);
return null;/*正常处理后返回*/
}
}
/* 错误情况*/
frame.skipBytes(1);
this.fireProtocolError(ctx, version, frame.readLong());
return null;
}
protected ByteBuf extractFrame(ChannelHandlerContext ctx, ByteBuf buffer, int index, int length) {
return buffer.slice(index, length);