mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-11 03:13:51 +00:00
ref[protocol]: Serialization and deserialization do not have to be forced to inherit IPacket
This commit is contained in:
1 parent
0e591eaddb
commit
7060fe87f8
45 files changed
+125
-180
No files matched your search
@@ -151,7 +151,7 @@ public class PacketService implements IPacketService {
|
||||
// 解析包的附加包
|
||||
var hasAttachment = ByteBufUtils.tryReadBoolean(buffer);
|
||||
var attachment = hasAttachment ? ((IAttachment) ProtocolManager.read(buffer)) : null;
|
||||
return DecodedPacketInfo.valueOf(packet, attachment);
|
||||
return DecodedPacketInfo.valueOf((IPacket) packet, attachment);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user