pull/2/head
jaysunxiao 2022-05-22 22:05:20 +08:00
parent b2a01aaa91
commit f2ff2cc5e3
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ func test():
var packet = ProtocolManager.read(buffer) var packet = ProtocolManager.read(buffer)
print(packet) print(packet)
packet.myCompatible = 0
var newByteBuffer = ByteBuffer.new() var newByteBuffer = ByteBuffer.new()
ProtocolManager.write(newByteBuffer, packet); ProtocolManager.write(newByteBuffer, packet);
print(newByteBuffer.getWriteOffset()) print(newByteBuffer.getWriteOffset())