doc
parent
c3a14e5522
commit
e3eee66fac
|
@ -26,8 +26,8 @@ static func read(buffer):
|
||||||
return packet;
|
return packet;
|
||||||
|
|
||||||
static func initProtocol():
|
static func initProtocol():
|
||||||
protocols[100] = ComplexObject;
|
protocols[100] = ComplexObject
|
||||||
protocols[101] = NormalObject;
|
protocols[101] = NormalObject
|
||||||
protocols[102] = ObjectA;
|
protocols[102] = ObjectA
|
||||||
protocols[103] = ObjectB;
|
protocols[103] = ObjectB
|
||||||
protocols[104] = SimpleObject;
|
protocols[104] = SimpleObject
|
||||||
|
|
|
@ -257,3 +257,405 @@ func readPacket(protocolId):
|
||||||
|
|
||||||
func newInstance(protocolId: int):
|
func newInstance(protocolId: int):
|
||||||
return ProtocolManager.newInstance(protocolId)
|
return ProtocolManager.newInstance(protocolId)
|
||||||
|
|
||||||
|
func writeBooleanArray(value):
|
||||||
|
if (value == null):
|
||||||
|
writeInt(0)
|
||||||
|
else:
|
||||||
|
writeInt(value.size());
|
||||||
|
for element in value:
|
||||||
|
writeBool(element)
|
||||||
|
|
||||||
|
func readBooleanArray():
|
||||||
|
var array = []
|
||||||
|
var size = readInt()
|
||||||
|
if (size > 0):
|
||||||
|
for index in range(size):
|
||||||
|
array.append(readBool())
|
||||||
|
return array
|
||||||
|
|
||||||
|
func writeByteArray(value):
|
||||||
|
if (value == null):
|
||||||
|
writeInt(0)
|
||||||
|
else:
|
||||||
|
writeInt(value.size());
|
||||||
|
for element in value:
|
||||||
|
writeByte(element)
|
||||||
|
|
||||||
|
func readByteArray():
|
||||||
|
var array = []
|
||||||
|
var size = readInt()
|
||||||
|
if (size > 0):
|
||||||
|
for index in range(size):
|
||||||
|
array.append(readByte())
|
||||||
|
return array
|
||||||
|
|
||||||
|
func writeShortArray(value):
|
||||||
|
if (value == null):
|
||||||
|
writeInt(0)
|
||||||
|
else:
|
||||||
|
writeInt(value.size());
|
||||||
|
for element in value:
|
||||||
|
writeShort(element)
|
||||||
|
|
||||||
|
func readShortArray():
|
||||||
|
var array = []
|
||||||
|
var size = readInt()
|
||||||
|
if (size > 0):
|
||||||
|
for index in range(size):
|
||||||
|
array.append(readShort())
|
||||||
|
return array
|
||||||
|
|
||||||
|
func writeIntArray(value):
|
||||||
|
if (value == null):
|
||||||
|
writeInt(0)
|
||||||
|
else:
|
||||||
|
writeInt(value.size());
|
||||||
|
for element in value:
|
||||||
|
writeInt(element)
|
||||||
|
|
||||||
|
func readIntArray():
|
||||||
|
var array = []
|
||||||
|
var size = readInt()
|
||||||
|
if (size > 0):
|
||||||
|
for index in range(size):
|
||||||
|
array.append(readInt())
|
||||||
|
return array
|
||||||
|
|
||||||
|
func writeLongArray(value):
|
||||||
|
if (value == null):
|
||||||
|
writeInt(0)
|
||||||
|
else:
|
||||||
|
writeInt(value.size());
|
||||||
|
for element in value:
|
||||||
|
writeLong(element)
|
||||||
|
|
||||||
|
func readLongArray():
|
||||||
|
var array = []
|
||||||
|
var size = readInt()
|
||||||
|
if (size > 0):
|
||||||
|
for index in range(size):
|
||||||
|
array.append(readLong())
|
||||||
|
return array
|
||||||
|
|
||||||
|
func writeFloatArray(value):
|
||||||
|
if (value == null):
|
||||||
|
writeInt(0)
|
||||||
|
else:
|
||||||
|
writeInt(value.size());
|
||||||
|
for element in value:
|
||||||
|
writeFloat(element)
|
||||||
|
|
||||||
|
func readFloatArray():
|
||||||
|
var array = []
|
||||||
|
var size = readInt()
|
||||||
|
if (size > 0):
|
||||||
|
for index in range(size):
|
||||||
|
array.append(readFloat())
|
||||||
|
return array
|
||||||
|
|
||||||
|
func writeDoubleArray(value):
|
||||||
|
if (value == null):
|
||||||
|
writeInt(0)
|
||||||
|
else:
|
||||||
|
writeInt(value.size());
|
||||||
|
for element in value:
|
||||||
|
writeDouble(element)
|
||||||
|
|
||||||
|
func readDoubleArray():
|
||||||
|
var array = []
|
||||||
|
var size = readInt()
|
||||||
|
if (size > 0):
|
||||||
|
for index in range(size):
|
||||||
|
array.append(readDouble())
|
||||||
|
return array
|
||||||
|
|
||||||
|
func writeCharArray(value):
|
||||||
|
if (value == null):
|
||||||
|
writeInt(0)
|
||||||
|
else:
|
||||||
|
writeInt(value.size());
|
||||||
|
for element in value:
|
||||||
|
writeChar(element)
|
||||||
|
|
||||||
|
func readCharArray():
|
||||||
|
var array = []
|
||||||
|
var size = readInt()
|
||||||
|
if (size > 0):
|
||||||
|
for index in range(size):
|
||||||
|
array.append(readChar())
|
||||||
|
return array
|
||||||
|
|
||||||
|
func writeStringArray(value):
|
||||||
|
if (value == null):
|
||||||
|
writeInt(0)
|
||||||
|
else:
|
||||||
|
writeInt(value.size());
|
||||||
|
for element in value:
|
||||||
|
writeString(element)
|
||||||
|
|
||||||
|
func readStringArray():
|
||||||
|
var array = []
|
||||||
|
var size = readInt()
|
||||||
|
if (size > 0):
|
||||||
|
for index in range(size):
|
||||||
|
array.append(readString())
|
||||||
|
return array
|
||||||
|
|
||||||
|
|
||||||
|
func writePacketArray(value, protocolId):
|
||||||
|
if (value == null):
|
||||||
|
writeInt(0)
|
||||||
|
else:
|
||||||
|
var protocolRegistration = ProtocolManager.getProtocol(protocolId)
|
||||||
|
writeInt(value.size());
|
||||||
|
for element in value:
|
||||||
|
protocolRegistration.write(self, element)
|
||||||
|
|
||||||
|
func readPacketArray(protocolId):
|
||||||
|
var array = []
|
||||||
|
var size = readInt()
|
||||||
|
if (size > 0):
|
||||||
|
var protocolRegistration = ProtocolManager.getProtocol(protocolId)
|
||||||
|
for index in range(size):
|
||||||
|
array.append(protocolRegistration.read(self))
|
||||||
|
return array
|
||||||
|
|
||||||
|
func writeIntIntMap(value):
|
||||||
|
if (value == null):
|
||||||
|
writeInt(0)
|
||||||
|
else:
|
||||||
|
writeInt(value.size())
|
||||||
|
for key in value:
|
||||||
|
writeInt(key)
|
||||||
|
writeInt(value[key])
|
||||||
|
|
||||||
|
func readIntIntMap():
|
||||||
|
var map = {}
|
||||||
|
var size = readInt()
|
||||||
|
if (size > 0):
|
||||||
|
for index in range(size):
|
||||||
|
var key = readInt()
|
||||||
|
var value = readInt()
|
||||||
|
map[key] = value
|
||||||
|
return map
|
||||||
|
|
||||||
|
func writeIntLongMap(value):
|
||||||
|
if (value == null):
|
||||||
|
writeInt(0)
|
||||||
|
else:
|
||||||
|
writeInt(value.size())
|
||||||
|
for key in value:
|
||||||
|
writeInt(key)
|
||||||
|
writeLong(value[key])
|
||||||
|
|
||||||
|
func readIntLongMap():
|
||||||
|
var map = {}
|
||||||
|
var size = readInt()
|
||||||
|
if (size > 0):
|
||||||
|
for index in range(size):
|
||||||
|
var key = readInt()
|
||||||
|
var value = readLong()
|
||||||
|
map[key] = value
|
||||||
|
return map
|
||||||
|
|
||||||
|
func writeIntStringMap(value):
|
||||||
|
if (value == null):
|
||||||
|
writeInt(0)
|
||||||
|
else:
|
||||||
|
writeInt(value.size())
|
||||||
|
for key in value:
|
||||||
|
writeInt(key)
|
||||||
|
writeString(value[key])
|
||||||
|
|
||||||
|
func readIntStringMap():
|
||||||
|
var map = {}
|
||||||
|
var size = readInt()
|
||||||
|
if (size > 0):
|
||||||
|
for index in range(size):
|
||||||
|
var key = readInt()
|
||||||
|
var value = readString()
|
||||||
|
map[key] = value
|
||||||
|
return map
|
||||||
|
|
||||||
|
|
||||||
|
func writeIntPacketMap(value, protocolId):
|
||||||
|
if (value == null):
|
||||||
|
writeInt(0)
|
||||||
|
else:
|
||||||
|
var protocolRegistration = ProtocolManager.getProtocol(protocolId)
|
||||||
|
writeInt(value.size())
|
||||||
|
for key in value:
|
||||||
|
writeInt(key)
|
||||||
|
protocolRegistration.write(self, value[key])
|
||||||
|
|
||||||
|
func readIntPacketMap(protocolId):
|
||||||
|
var map = {}
|
||||||
|
var size = readInt()
|
||||||
|
if (size > 0):
|
||||||
|
var protocolRegistration = ProtocolManager.getProtocol(protocolId)
|
||||||
|
for index in range(size):
|
||||||
|
var key = readInt()
|
||||||
|
var value = protocolRegistration.read(self)
|
||||||
|
map[key] = value
|
||||||
|
return map
|
||||||
|
|
||||||
|
|
||||||
|
func writeLongIntMap(value):
|
||||||
|
if (value == null):
|
||||||
|
writeInt(0)
|
||||||
|
else:
|
||||||
|
writeInt(value.size())
|
||||||
|
for key in value:
|
||||||
|
writeLong(key)
|
||||||
|
writeInt(value[key])
|
||||||
|
|
||||||
|
func readLongIntMap():
|
||||||
|
var map = {}
|
||||||
|
var size = readInt()
|
||||||
|
if (size > 0):
|
||||||
|
for index in range(size):
|
||||||
|
var key = readLong()
|
||||||
|
var value = readInt()
|
||||||
|
map[key] = value
|
||||||
|
return map
|
||||||
|
|
||||||
|
func writeLongLongMap(value):
|
||||||
|
if (value == null):
|
||||||
|
writeInt(0)
|
||||||
|
else:
|
||||||
|
writeInt(value.size())
|
||||||
|
for key in value:
|
||||||
|
writeLong(key)
|
||||||
|
writeLong(value[key])
|
||||||
|
|
||||||
|
func readLongLongMap():
|
||||||
|
var map = {}
|
||||||
|
var size = readInt()
|
||||||
|
if (size > 0):
|
||||||
|
for index in range(size):
|
||||||
|
var key = readLong()
|
||||||
|
var value = readLong()
|
||||||
|
map[key] = value
|
||||||
|
return map
|
||||||
|
|
||||||
|
func writeLongStringMap(value):
|
||||||
|
if (value == null):
|
||||||
|
writeInt(0)
|
||||||
|
else:
|
||||||
|
writeInt(value.size())
|
||||||
|
for key in value:
|
||||||
|
writeLong(key)
|
||||||
|
writeString(value[key])
|
||||||
|
|
||||||
|
func readLongStringMap():
|
||||||
|
var map = {}
|
||||||
|
var size = readInt()
|
||||||
|
if (size > 0):
|
||||||
|
for index in range(size):
|
||||||
|
var key = readLong()
|
||||||
|
var value = readString()
|
||||||
|
map[key] = value
|
||||||
|
return map
|
||||||
|
|
||||||
|
|
||||||
|
func writeLongPacketMap(value, protocolId):
|
||||||
|
if (value == null):
|
||||||
|
writeInt(0)
|
||||||
|
else:
|
||||||
|
var protocolRegistration = ProtocolManager.getProtocol(protocolId)
|
||||||
|
writeInt(value.size())
|
||||||
|
for key in value:
|
||||||
|
writeLong(key)
|
||||||
|
protocolRegistration.write(self, value[key])
|
||||||
|
|
||||||
|
func readLongPacketMap(protocolId):
|
||||||
|
var map = {}
|
||||||
|
var size = readInt()
|
||||||
|
if (size > 0):
|
||||||
|
var protocolRegistration = ProtocolManager.getProtocol(protocolId)
|
||||||
|
for index in range(size):
|
||||||
|
var key = readLong()
|
||||||
|
var value = protocolRegistration.read(self)
|
||||||
|
map[key] = value
|
||||||
|
return map
|
||||||
|
|
||||||
|
|
||||||
|
func writeStringIntMap(value):
|
||||||
|
if (value == null):
|
||||||
|
writeInt(0)
|
||||||
|
else:
|
||||||
|
writeInt(value.size())
|
||||||
|
for key in value:
|
||||||
|
writeString(key)
|
||||||
|
writeInt(value[key])
|
||||||
|
|
||||||
|
func readStringIntMap():
|
||||||
|
var map = {}
|
||||||
|
var size = readInt()
|
||||||
|
if (size > 0):
|
||||||
|
for index in range(size):
|
||||||
|
var key = readString()
|
||||||
|
var value = readInt()
|
||||||
|
map[key] = value
|
||||||
|
return map
|
||||||
|
|
||||||
|
func writeStringLongMap(value):
|
||||||
|
if (value == null):
|
||||||
|
writeInt(0)
|
||||||
|
else:
|
||||||
|
writeInt(value.size())
|
||||||
|
for key in value:
|
||||||
|
writeString(key)
|
||||||
|
writeLong(value[key])
|
||||||
|
|
||||||
|
func readStringLongMap():
|
||||||
|
var map = {}
|
||||||
|
var size = readInt()
|
||||||
|
if (size > 0):
|
||||||
|
for index in range(size):
|
||||||
|
var key = readString()
|
||||||
|
var value = readLong()
|
||||||
|
map[key] = value
|
||||||
|
return map
|
||||||
|
|
||||||
|
func writeStringStringMap(value):
|
||||||
|
if (value == null):
|
||||||
|
writeInt(0)
|
||||||
|
else:
|
||||||
|
writeInt(value.size())
|
||||||
|
for key in value:
|
||||||
|
writeString(key)
|
||||||
|
writeString(value[key])
|
||||||
|
|
||||||
|
func readStringStringMap():
|
||||||
|
var map = {}
|
||||||
|
var size = readInt()
|
||||||
|
if (size > 0):
|
||||||
|
for index in range(size):
|
||||||
|
var key = readString()
|
||||||
|
var value = readString()
|
||||||
|
map[key] = value
|
||||||
|
return map
|
||||||
|
|
||||||
|
|
||||||
|
func writeStringPacketMap(value, protocolId):
|
||||||
|
if (value == null):
|
||||||
|
writeInt(0)
|
||||||
|
else:
|
||||||
|
var protocolRegistration = ProtocolManager.getProtocol(protocolId)
|
||||||
|
writeInt(value.size())
|
||||||
|
for key in value:
|
||||||
|
writeString(key)
|
||||||
|
protocolRegistration.write(self, value[key])
|
||||||
|
|
||||||
|
func readStringPacketMap(protocolId):
|
||||||
|
var map = {}
|
||||||
|
var size = readInt()
|
||||||
|
if (size > 0):
|
||||||
|
var protocolRegistration = ProtocolManager.getProtocol(protocolId)
|
||||||
|
for index in range(size):
|
||||||
|
var key = readString()
|
||||||
|
var value = protocolRegistration.read(self)
|
||||||
|
map[key] = value
|
||||||
|
return map
|
||||||
|
|
|
@ -66,698 +66,330 @@ static func write(buffer, packet):
|
||||||
return
|
return
|
||||||
buffer.writeByte(packet.a)
|
buffer.writeByte(packet.a)
|
||||||
buffer.writeByte(packet.aa)
|
buffer.writeByte(packet.aa)
|
||||||
if (packet.aaa == null):
|
buffer.writeByteArray(packet.aaa)
|
||||||
buffer.writeInt(0)
|
buffer.writeByteArray(packet.aaaa)
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.aaa.size());
|
|
||||||
for element0 in packet.aaa:
|
|
||||||
buffer.writeByte(element0)
|
|
||||||
if (packet.aaaa == null):
|
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.aaaa.size());
|
|
||||||
for element1 in packet.aaaa:
|
|
||||||
buffer.writeByte(element1)
|
|
||||||
buffer.writeShort(packet.b)
|
buffer.writeShort(packet.b)
|
||||||
buffer.writeShort(packet.bb)
|
buffer.writeShort(packet.bb)
|
||||||
if (packet.bbb == null):
|
buffer.writeShortArray(packet.bbb)
|
||||||
buffer.writeInt(0)
|
buffer.writeShortArray(packet.bbbb)
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.bbb.size());
|
|
||||||
for element2 in packet.bbb:
|
|
||||||
buffer.writeShort(element2)
|
|
||||||
if (packet.bbbb == null):
|
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.bbbb.size());
|
|
||||||
for element3 in packet.bbbb:
|
|
||||||
buffer.writeShort(element3)
|
|
||||||
buffer.writeInt(packet.c)
|
buffer.writeInt(packet.c)
|
||||||
buffer.writeInt(packet.cc)
|
buffer.writeInt(packet.cc)
|
||||||
if (packet.ccc == null):
|
buffer.writeIntArray(packet.ccc)
|
||||||
buffer.writeInt(0)
|
buffer.writeIntArray(packet.cccc)
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.ccc.size());
|
|
||||||
for element4 in packet.ccc:
|
|
||||||
buffer.writeInt(element4)
|
|
||||||
if (packet.cccc == null):
|
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.cccc.size());
|
|
||||||
for element5 in packet.cccc:
|
|
||||||
buffer.writeInt(element5)
|
|
||||||
buffer.writeLong(packet.d)
|
buffer.writeLong(packet.d)
|
||||||
buffer.writeLong(packet.dd)
|
buffer.writeLong(packet.dd)
|
||||||
if (packet.ddd == null):
|
buffer.writeLongArray(packet.ddd)
|
||||||
buffer.writeInt(0)
|
buffer.writeLongArray(packet.dddd)
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.ddd.size());
|
|
||||||
for element6 in packet.ddd:
|
|
||||||
buffer.writeLong(element6)
|
|
||||||
if (packet.dddd == null):
|
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.dddd.size());
|
|
||||||
for element7 in packet.dddd:
|
|
||||||
buffer.writeLong(element7)
|
|
||||||
buffer.writeFloat(packet.e)
|
buffer.writeFloat(packet.e)
|
||||||
buffer.writeFloat(packet.ee)
|
buffer.writeFloat(packet.ee)
|
||||||
if (packet.eee == null):
|
buffer.writeFloatArray(packet.eee)
|
||||||
buffer.writeInt(0)
|
buffer.writeFloatArray(packet.eeee)
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.eee.size());
|
|
||||||
for element8 in packet.eee:
|
|
||||||
buffer.writeFloat(element8)
|
|
||||||
if (packet.eeee == null):
|
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.eeee.size());
|
|
||||||
for element9 in packet.eeee:
|
|
||||||
buffer.writeFloat(element9)
|
|
||||||
buffer.writeDouble(packet.f)
|
buffer.writeDouble(packet.f)
|
||||||
buffer.writeDouble(packet.ff)
|
buffer.writeDouble(packet.ff)
|
||||||
if (packet.fff == null):
|
buffer.writeDoubleArray(packet.fff)
|
||||||
buffer.writeInt(0)
|
buffer.writeDoubleArray(packet.ffff)
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.fff.size());
|
|
||||||
for element10 in packet.fff:
|
|
||||||
buffer.writeDouble(element10)
|
|
||||||
if (packet.ffff == null):
|
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.ffff.size());
|
|
||||||
for element11 in packet.ffff:
|
|
||||||
buffer.writeDouble(element11)
|
|
||||||
buffer.writeBool(packet.g)
|
buffer.writeBool(packet.g)
|
||||||
buffer.writeBool(packet.gg)
|
buffer.writeBool(packet.gg)
|
||||||
if (packet.ggg == null):
|
buffer.writeBooleanArray(packet.ggg)
|
||||||
buffer.writeInt(0)
|
buffer.writeBooleanArray(packet.gggg)
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.ggg.size());
|
|
||||||
for element12 in packet.ggg:
|
|
||||||
buffer.writeBool(element12)
|
|
||||||
if (packet.gggg == null):
|
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.gggg.size());
|
|
||||||
for element13 in packet.gggg:
|
|
||||||
buffer.writeBool(element13)
|
|
||||||
buffer.writeChar(packet.h)
|
buffer.writeChar(packet.h)
|
||||||
buffer.writeChar(packet.hh)
|
buffer.writeChar(packet.hh)
|
||||||
if (packet.hhh == null):
|
buffer.writeCharArray(packet.hhh)
|
||||||
buffer.writeInt(0)
|
buffer.writeCharArray(packet.hhhh)
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.hhh.size());
|
|
||||||
for element14 in packet.hhh:
|
|
||||||
buffer.writeChar(element14)
|
|
||||||
if (packet.hhhh == null):
|
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.hhhh.size());
|
|
||||||
for element15 in packet.hhhh:
|
|
||||||
buffer.writeChar(element15)
|
|
||||||
buffer.writeString(packet.jj)
|
buffer.writeString(packet.jj)
|
||||||
if (packet.jjj == null):
|
buffer.writeStringArray(packet.jjj)
|
||||||
buffer.writeInt(0)
|
buffer.writePacket(packet.kk, 102)
|
||||||
else:
|
buffer.writePacketArray(packet.kkk, 102)
|
||||||
buffer.writeInt(packet.jjj.size());
|
buffer.writeIntArray(packet.l)
|
||||||
for element16 in packet.jjj:
|
|
||||||
buffer.writeString(element16)
|
|
||||||
buffer.writePacket(packet.kk, 102);
|
|
||||||
if (packet.kkk == null):
|
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.kkk.size());
|
|
||||||
for element17 in packet.kkk:
|
|
||||||
buffer.writePacket(element17, 102);
|
|
||||||
if (packet.l == null):
|
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.l.size());
|
|
||||||
for element18 in packet.l:
|
|
||||||
buffer.writeInt(element18)
|
|
||||||
if (packet.ll == null):
|
if (packet.ll == null):
|
||||||
buffer.writeInt(0)
|
buffer.writeInt(0)
|
||||||
else:
|
else:
|
||||||
buffer.writeInt(packet.ll.size());
|
buffer.writeInt(packet.ll.size())
|
||||||
for element19 in packet.ll:
|
for element0 in packet.ll:
|
||||||
if (element19 == null):
|
if (element0 == null):
|
||||||
buffer.writeInt(0)
|
buffer.writeInt(0)
|
||||||
else:
|
else:
|
||||||
buffer.writeInt(element19.size());
|
buffer.writeInt(element0.size())
|
||||||
for element20 in element19:
|
for element1 in element0:
|
||||||
if (element20 == null):
|
buffer.writeIntArray(element1)
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(element20.size());
|
|
||||||
for element21 in element20:
|
|
||||||
buffer.writeInt(element21)
|
|
||||||
if (packet.lll == null):
|
if (packet.lll == null):
|
||||||
buffer.writeInt(0)
|
buffer.writeInt(0)
|
||||||
else:
|
else:
|
||||||
buffer.writeInt(packet.lll.size());
|
buffer.writeInt(packet.lll.size())
|
||||||
for element22 in packet.lll:
|
for element2 in packet.lll:
|
||||||
if (element22 == null):
|
buffer.writePacketArray(element2, 102)
|
||||||
buffer.writeInt(0)
|
buffer.writeStringArray(packet.llll)
|
||||||
else:
|
|
||||||
buffer.writeInt(element22.size());
|
|
||||||
for element23 in element22:
|
|
||||||
buffer.writePacket(element23, 102);
|
|
||||||
if (packet.llll == null):
|
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.llll.size());
|
|
||||||
for element24 in packet.llll:
|
|
||||||
buffer.writeString(element24)
|
|
||||||
if (packet.lllll == null):
|
if (packet.lllll == null):
|
||||||
buffer.writeInt(0)
|
buffer.writeInt(0)
|
||||||
else:
|
else:
|
||||||
buffer.writeInt(packet.lllll.size());
|
buffer.writeInt(packet.lllll.size())
|
||||||
for element25 in packet.lllll:
|
for element3 in packet.lllll:
|
||||||
if (element25 == null):
|
buffer.writeIntStringMap(element3)
|
||||||
buffer.writeInt(0)
|
buffer.writeIntStringMap(packet.m)
|
||||||
else:
|
buffer.writeIntPacketMap(packet.mm, 102)
|
||||||
buffer.writeInt(element25.size())
|
|
||||||
for key26 in element25:
|
|
||||||
var value27 = element25[key26]
|
|
||||||
buffer.writeInt(key26)
|
|
||||||
buffer.writeString(value27)
|
|
||||||
if (packet.m == null):
|
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.m.size())
|
|
||||||
for key28 in packet.m:
|
|
||||||
var value29 = packet.m[key28]
|
|
||||||
buffer.writeInt(key28)
|
|
||||||
buffer.writeString(value29)
|
|
||||||
if (packet.mm == null):
|
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.mm.size())
|
|
||||||
for key30 in packet.mm:
|
|
||||||
var value31 = packet.mm[key30]
|
|
||||||
buffer.writeInt(key30)
|
|
||||||
buffer.writePacket(value31, 102);
|
|
||||||
if (packet.mmm == null):
|
if (packet.mmm == null):
|
||||||
buffer.writeInt(0)
|
buffer.writeInt(0)
|
||||||
else:
|
else:
|
||||||
buffer.writeInt(packet.mmm.size())
|
buffer.writeInt(packet.mmm.size())
|
||||||
for key32 in packet.mmm:
|
for key4 in packet.mmm:
|
||||||
var value33 = packet.mmm[key32]
|
var value5 = packet.mmm[key4]
|
||||||
buffer.writePacket(key32, 102);
|
buffer.writePacket(key4, 102)
|
||||||
if (value33 == null):
|
buffer.writeIntArray(value5)
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(value33.size());
|
|
||||||
for element34 in value33:
|
|
||||||
buffer.writeInt(element34)
|
|
||||||
if (packet.mmmm == null):
|
if (packet.mmmm == null):
|
||||||
buffer.writeInt(0)
|
buffer.writeInt(0)
|
||||||
else:
|
else:
|
||||||
buffer.writeInt(packet.mmmm.size())
|
buffer.writeInt(packet.mmmm.size())
|
||||||
for key35 in packet.mmmm:
|
for key6 in packet.mmmm:
|
||||||
var value36 = packet.mmmm[key35]
|
var value7 = packet.mmmm[key6]
|
||||||
if (key35 == null):
|
if (key6 == null):
|
||||||
buffer.writeInt(0)
|
buffer.writeInt(0)
|
||||||
else:
|
else:
|
||||||
buffer.writeInt(key35.size());
|
buffer.writeInt(key6.size())
|
||||||
for element37 in key35:
|
for element8 in key6:
|
||||||
if (element37 == null):
|
buffer.writePacketArray(element8, 102)
|
||||||
buffer.writeInt(0)
|
if (value7 == null):
|
||||||
else:
|
|
||||||
buffer.writeInt(element37.size());
|
|
||||||
for element38 in element37:
|
|
||||||
buffer.writePacket(element38, 102);
|
|
||||||
if (value36 == null):
|
|
||||||
buffer.writeInt(0)
|
buffer.writeInt(0)
|
||||||
else:
|
else:
|
||||||
buffer.writeInt(value36.size());
|
buffer.writeInt(value7.size())
|
||||||
for element39 in value36:
|
for element9 in value7:
|
||||||
if (element39 == null):
|
if (element9 == null):
|
||||||
buffer.writeInt(0)
|
buffer.writeInt(0)
|
||||||
else:
|
else:
|
||||||
buffer.writeInt(element39.size());
|
buffer.writeInt(element9.size())
|
||||||
for element40 in element39:
|
for element10 in element9:
|
||||||
if (element40 == null):
|
buffer.writeIntArray(element10)
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(element40.size());
|
|
||||||
for element41 in element40:
|
|
||||||
buffer.writeInt(element41)
|
|
||||||
if (packet.mmmmm == null):
|
if (packet.mmmmm == null):
|
||||||
buffer.writeInt(0)
|
buffer.writeInt(0)
|
||||||
else:
|
else:
|
||||||
buffer.writeInt(packet.mmmmm.size())
|
buffer.writeInt(packet.mmmmm.size())
|
||||||
for key42 in packet.mmmmm:
|
for key11 in packet.mmmmm:
|
||||||
var value43 = packet.mmmmm[key42]
|
var value12 = packet.mmmmm[key11]
|
||||||
if (key42 == null):
|
if (key11 == null):
|
||||||
buffer.writeInt(0)
|
buffer.writeInt(0)
|
||||||
else:
|
else:
|
||||||
buffer.writeInt(key42.size());
|
buffer.writeInt(key11.size())
|
||||||
for element44 in key42:
|
for element13 in key11:
|
||||||
if (element44 == null):
|
buffer.writeIntStringMap(element13)
|
||||||
buffer.writeInt(0)
|
if (value12 == null):
|
||||||
else:
|
|
||||||
buffer.writeInt(element44.size())
|
|
||||||
for key45 in element44:
|
|
||||||
var value46 = element44[key45]
|
|
||||||
buffer.writeInt(key45)
|
|
||||||
buffer.writeString(value46)
|
|
||||||
if (value43 == null):
|
|
||||||
buffer.writeInt(0)
|
buffer.writeInt(0)
|
||||||
else:
|
else:
|
||||||
buffer.writeInt(value43.size());
|
buffer.writeInt(value12.size())
|
||||||
for element47 in value43:
|
for element14 in value12:
|
||||||
if (element47 == null):
|
buffer.writeIntStringMap(element14)
|
||||||
buffer.writeInt(0)
|
buffer.writeIntArray(packet.s)
|
||||||
else:
|
|
||||||
buffer.writeInt(element47.size())
|
|
||||||
for key48 in element47:
|
|
||||||
var value49 = element47[key48]
|
|
||||||
buffer.writeInt(key48)
|
|
||||||
buffer.writeString(value49)
|
|
||||||
if (packet.s == null):
|
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.s.size());
|
|
||||||
for element50 in packet.s:
|
|
||||||
buffer.writeInt(element50)
|
|
||||||
if (packet.ss == null):
|
if (packet.ss == null):
|
||||||
buffer.writeInt(0)
|
buffer.writeInt(0)
|
||||||
else:
|
else:
|
||||||
buffer.writeInt(packet.ss.size());
|
buffer.writeInt(packet.ss.size())
|
||||||
for element51 in packet.ss:
|
for element15 in packet.ss:
|
||||||
if (element51 == null):
|
if (element15 == null):
|
||||||
buffer.writeInt(0)
|
buffer.writeInt(0)
|
||||||
else:
|
else:
|
||||||
buffer.writeInt(element51.size());
|
buffer.writeInt(element15.size())
|
||||||
for element52 in element51:
|
for element16 in element15:
|
||||||
if (element52 == null):
|
buffer.writeIntArray(element16)
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(element52.size());
|
|
||||||
for element53 in element52:
|
|
||||||
buffer.writeInt(element53)
|
|
||||||
if (packet.sss == null):
|
if (packet.sss == null):
|
||||||
buffer.writeInt(0)
|
buffer.writeInt(0)
|
||||||
else:
|
else:
|
||||||
buffer.writeInt(packet.sss.size());
|
buffer.writeInt(packet.sss.size())
|
||||||
for element54 in packet.sss:
|
for element17 in packet.sss:
|
||||||
if (element54 == null):
|
buffer.writePacketArray(element17, 102)
|
||||||
buffer.writeInt(0)
|
buffer.writeStringArray(packet.ssss)
|
||||||
else:
|
|
||||||
buffer.writeInt(element54.size());
|
|
||||||
for element55 in element54:
|
|
||||||
buffer.writePacket(element55, 102);
|
|
||||||
if (packet.ssss == null):
|
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.ssss.size());
|
|
||||||
for element56 in packet.ssss:
|
|
||||||
buffer.writeString(element56)
|
|
||||||
if (packet.sssss == null):
|
if (packet.sssss == null):
|
||||||
buffer.writeInt(0)
|
buffer.writeInt(0)
|
||||||
else:
|
else:
|
||||||
buffer.writeInt(packet.sssss.size());
|
buffer.writeInt(packet.sssss.size())
|
||||||
for element57 in packet.sssss:
|
for element18 in packet.sssss:
|
||||||
if (element57 == null):
|
buffer.writeIntStringMap(element18)
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(element57.size())
|
|
||||||
for key58 in element57:
|
|
||||||
var value59 = element57[key58]
|
|
||||||
buffer.writeInt(key58)
|
|
||||||
buffer.writeString(value59)
|
|
||||||
|
|
||||||
|
|
||||||
static func read(buffer):
|
static func read(buffer):
|
||||||
if (!buffer.readBool()):
|
if (!buffer.readBool()):
|
||||||
return null
|
return null
|
||||||
var packet = buffer.newInstance(100)
|
var packet = buffer.newInstance(100)
|
||||||
var result60 = buffer.readByte()
|
var result19 = buffer.readByte()
|
||||||
packet.a = result60
|
packet.a = result19
|
||||||
var result61 = buffer.readByte()
|
var result20 = buffer.readByte()
|
||||||
packet.aa = result61
|
packet.aa = result20
|
||||||
var result62 = []
|
var array21 = buffer.readByteArray()
|
||||||
var size64 = buffer.readInt()
|
packet.aaa = array21
|
||||||
if (size64 > 0):
|
var array22 = buffer.readByteArray()
|
||||||
for index63 in range(size64):
|
packet.aaaa = array22
|
||||||
var result65 = buffer.readByte()
|
var result23 = buffer.readShort()
|
||||||
result62.append(result65)
|
packet.b = result23
|
||||||
packet.aaa = result62
|
var result24 = buffer.readShort()
|
||||||
var result66 = []
|
packet.bb = result24
|
||||||
var size68 = buffer.readInt()
|
var array25 = buffer.readShortArray()
|
||||||
if (size68 > 0):
|
packet.bbb = array25
|
||||||
for index67 in range(size68):
|
var array26 = buffer.readShortArray()
|
||||||
var result69 = buffer.readByte()
|
packet.bbbb = array26
|
||||||
result66.append(result69)
|
var result27 = buffer.readInt()
|
||||||
packet.aaaa = result66
|
packet.c = result27
|
||||||
var result70 = buffer.readShort()
|
var result28 = buffer.readInt()
|
||||||
packet.b = result70
|
packet.cc = result28
|
||||||
var result71 = buffer.readShort()
|
var array29 = buffer.readIntArray()
|
||||||
packet.bb = result71
|
packet.ccc = array29
|
||||||
var result72 = []
|
var array30 = buffer.readIntArray()
|
||||||
var size74 = buffer.readInt()
|
packet.cccc = array30
|
||||||
if (size74 > 0):
|
var result31 = buffer.readLong()
|
||||||
for index73 in range(size74):
|
packet.d = result31
|
||||||
var result75 = buffer.readShort()
|
var result32 = buffer.readLong()
|
||||||
result72.append(result75)
|
packet.dd = result32
|
||||||
packet.bbb = result72
|
var array33 = buffer.readLongArray()
|
||||||
var result76 = []
|
packet.ddd = array33
|
||||||
var size78 = buffer.readInt()
|
var array34 = buffer.readLongArray()
|
||||||
if (size78 > 0):
|
packet.dddd = array34
|
||||||
for index77 in range(size78):
|
var result35 = buffer.readFloat()
|
||||||
var result79 = buffer.readShort()
|
packet.e = result35
|
||||||
result76.append(result79)
|
var result36 = buffer.readFloat()
|
||||||
packet.bbbb = result76
|
packet.ee = result36
|
||||||
var result80 = buffer.readInt()
|
var array37 = buffer.readFloatArray()
|
||||||
packet.c = result80
|
packet.eee = array37
|
||||||
var result81 = buffer.readInt()
|
var array38 = buffer.readFloatArray()
|
||||||
packet.cc = result81
|
packet.eeee = array38
|
||||||
var result82 = []
|
var result39 = buffer.readDouble()
|
||||||
var size84 = buffer.readInt()
|
packet.f = result39
|
||||||
if (size84 > 0):
|
var result40 = buffer.readDouble()
|
||||||
for index83 in range(size84):
|
packet.ff = result40
|
||||||
var result85 = buffer.readInt()
|
var array41 = buffer.readDoubleArray()
|
||||||
result82.append(result85)
|
packet.fff = array41
|
||||||
packet.ccc = result82
|
var array42 = buffer.readDoubleArray()
|
||||||
var result86 = []
|
packet.ffff = array42
|
||||||
var size88 = buffer.readInt()
|
var result43 = buffer.readBool()
|
||||||
if (size88 > 0):
|
packet.g = result43
|
||||||
for index87 in range(size88):
|
var result44 = buffer.readBool()
|
||||||
var result89 = buffer.readInt()
|
packet.gg = result44
|
||||||
result86.append(result89)
|
var array45 = buffer.readBooleanArray()
|
||||||
packet.cccc = result86
|
packet.ggg = array45
|
||||||
var result90 = buffer.readLong()
|
var array46 = buffer.readBooleanArray()
|
||||||
packet.d = result90
|
packet.gggg = array46
|
||||||
var result91 = buffer.readLong()
|
var result47 = buffer.readChar()
|
||||||
packet.dd = result91
|
packet.h = result47
|
||||||
var result92 = []
|
var result48 = buffer.readChar()
|
||||||
|
packet.hh = result48
|
||||||
|
var array49 = buffer.readCharArray()
|
||||||
|
packet.hhh = array49
|
||||||
|
var array50 = buffer.readCharArray()
|
||||||
|
packet.hhhh = array50
|
||||||
|
var result51 = buffer.readString()
|
||||||
|
packet.jj = result51
|
||||||
|
var array52 = buffer.readStringArray()
|
||||||
|
packet.jjj = array52
|
||||||
|
var result53 = buffer.readPacket(102)
|
||||||
|
packet.kk = result53
|
||||||
|
var array54 = buffer.readPacketArray(102)
|
||||||
|
packet.kkk = array54
|
||||||
|
var list55 = buffer.readIntArray()
|
||||||
|
packet.l = list55
|
||||||
|
var result56 = []
|
||||||
|
var size58 = buffer.readInt()
|
||||||
|
if (size58 > 0):
|
||||||
|
for index57 in range(size58):
|
||||||
|
var result59 = []
|
||||||
|
var size61 = buffer.readInt()
|
||||||
|
if (size61 > 0):
|
||||||
|
for index60 in range(size61):
|
||||||
|
var list62 = buffer.readIntArray()
|
||||||
|
result59.append(list62)
|
||||||
|
result56.append(result59)
|
||||||
|
packet.ll = result56
|
||||||
|
var result63 = []
|
||||||
|
var size65 = buffer.readInt()
|
||||||
|
if (size65 > 0):
|
||||||
|
for index64 in range(size65):
|
||||||
|
var list66 = buffer.readPacketArray(102)
|
||||||
|
result63.append(list66)
|
||||||
|
packet.lll = result63
|
||||||
|
var list67 = buffer.readStringArray()
|
||||||
|
packet.llll = list67
|
||||||
|
var result68 = []
|
||||||
|
var size70 = buffer.readInt()
|
||||||
|
if (size70 > 0):
|
||||||
|
for index69 in range(size70):
|
||||||
|
var map71 = buffer.readIntStringMap()
|
||||||
|
result68.append(map71)
|
||||||
|
packet.lllll = result68
|
||||||
|
var map72 = buffer.readIntStringMap()
|
||||||
|
packet.m = map72
|
||||||
|
var map73 = buffer.readIntPacketMap(102)
|
||||||
|
packet.mm = map73
|
||||||
|
var result74 = {}
|
||||||
|
var size75 = buffer.readInt()
|
||||||
|
if (size75 > 0):
|
||||||
|
for index76 in range(size75):
|
||||||
|
var result77 = buffer.readPacket(102)
|
||||||
|
var list78 = buffer.readIntArray()
|
||||||
|
result74[result77] = list78
|
||||||
|
packet.mmm = result74
|
||||||
|
var result79 = {}
|
||||||
|
var size80 = buffer.readInt()
|
||||||
|
if (size80 > 0):
|
||||||
|
for index81 in range(size80):
|
||||||
|
var result82 = []
|
||||||
|
var size84 = buffer.readInt()
|
||||||
|
if (size84 > 0):
|
||||||
|
for index83 in range(size84):
|
||||||
|
var list85 = buffer.readPacketArray(102)
|
||||||
|
result82.append(list85)
|
||||||
|
var result86 = []
|
||||||
|
var size88 = buffer.readInt()
|
||||||
|
if (size88 > 0):
|
||||||
|
for index87 in range(size88):
|
||||||
|
var result89 = []
|
||||||
|
var size91 = buffer.readInt()
|
||||||
|
if (size91 > 0):
|
||||||
|
for index90 in range(size91):
|
||||||
|
var list92 = buffer.readIntArray()
|
||||||
|
result89.append(list92)
|
||||||
|
result86.append(result89)
|
||||||
|
result79[result82] = result86
|
||||||
|
packet.mmmm = result79
|
||||||
|
var result93 = {}
|
||||||
var size94 = buffer.readInt()
|
var size94 = buffer.readInt()
|
||||||
if (size94 > 0):
|
if (size94 > 0):
|
||||||
for index93 in range(size94):
|
for index95 in range(size94):
|
||||||
var result95 = buffer.readLong()
|
var result96 = []
|
||||||
result92.append(result95)
|
var size98 = buffer.readInt()
|
||||||
packet.ddd = result92
|
if (size98 > 0):
|
||||||
var result96 = []
|
for index97 in range(size98):
|
||||||
var size98 = buffer.readInt()
|
var map99 = buffer.readIntStringMap()
|
||||||
if (size98 > 0):
|
result96.append(map99)
|
||||||
for index97 in range(size98):
|
var result100 = []
|
||||||
var result99 = buffer.readLong()
|
var size102 = buffer.readInt()
|
||||||
result96.append(result99)
|
if (size102 > 0):
|
||||||
packet.dddd = result96
|
for index101 in range(size102):
|
||||||
var result100 = buffer.readFloat()
|
var map103 = buffer.readIntStringMap()
|
||||||
packet.e = result100
|
result100.append(map103)
|
||||||
var result101 = buffer.readFloat()
|
result93[result96] = result100
|
||||||
packet.ee = result101
|
packet.mmmmm = result93
|
||||||
var result102 = []
|
var set104 = buffer.readIntArray()
|
||||||
var size104 = buffer.readInt()
|
packet.s = set104
|
||||||
if (size104 > 0):
|
var result105 = []
|
||||||
for index103 in range(size104):
|
var size107 = buffer.readInt()
|
||||||
var result105 = buffer.readFloat()
|
if (size107 > 0):
|
||||||
result102.append(result105)
|
for index106 in range(size107):
|
||||||
packet.eee = result102
|
var result108 = []
|
||||||
var result106 = []
|
var size110 = buffer.readInt()
|
||||||
var size108 = buffer.readInt()
|
if (size110 > 0):
|
||||||
if (size108 > 0):
|
for index109 in range(size110):
|
||||||
for index107 in range(size108):
|
var list111 = buffer.readIntArray()
|
||||||
var result109 = buffer.readFloat()
|
result108.append(list111)
|
||||||
result106.append(result109)
|
result105.append(result108)
|
||||||
packet.eeee = result106
|
packet.ss = result105
|
||||||
var result110 = buffer.readDouble()
|
|
||||||
packet.f = result110
|
|
||||||
var result111 = buffer.readDouble()
|
|
||||||
packet.ff = result111
|
|
||||||
var result112 = []
|
var result112 = []
|
||||||
var size114 = buffer.readInt()
|
var size114 = buffer.readInt()
|
||||||
if (size114 > 0):
|
if (size114 > 0):
|
||||||
for index113 in range(size114):
|
for index113 in range(size114):
|
||||||
var result115 = buffer.readDouble()
|
var set115 = buffer.readPacketArray(102)
|
||||||
result112.append(result115)
|
result112.append(set115)
|
||||||
packet.fff = result112
|
packet.sss = result112
|
||||||
var result116 = []
|
var set116 = buffer.readStringArray()
|
||||||
var size118 = buffer.readInt()
|
packet.ssss = set116
|
||||||
if (size118 > 0):
|
var result117 = []
|
||||||
for index117 in range(size118):
|
var size119 = buffer.readInt()
|
||||||
var result119 = buffer.readDouble()
|
if (size119 > 0):
|
||||||
result116.append(result119)
|
for index118 in range(size119):
|
||||||
packet.ffff = result116
|
var map120 = buffer.readIntStringMap()
|
||||||
var result120 = buffer.readBool()
|
result117.append(map120)
|
||||||
packet.g = result120
|
packet.sssss = result117
|
||||||
var result121 = buffer.readBool()
|
|
||||||
packet.gg = result121
|
|
||||||
var result122 = []
|
|
||||||
var size124 = buffer.readInt()
|
|
||||||
if (size124 > 0):
|
|
||||||
for index123 in range(size124):
|
|
||||||
var result125 = buffer.readBool()
|
|
||||||
result122.append(result125)
|
|
||||||
packet.ggg = result122
|
|
||||||
var result126 = []
|
|
||||||
var size128 = buffer.readInt()
|
|
||||||
if (size128 > 0):
|
|
||||||
for index127 in range(size128):
|
|
||||||
var result129 = buffer.readBool()
|
|
||||||
result126.append(result129)
|
|
||||||
packet.gggg = result126
|
|
||||||
var result130 = buffer.readChar()
|
|
||||||
packet.h = result130
|
|
||||||
var result131 = buffer.readChar()
|
|
||||||
packet.hh = result131
|
|
||||||
var result132 = []
|
|
||||||
var size134 = buffer.readInt()
|
|
||||||
if (size134 > 0):
|
|
||||||
for index133 in range(size134):
|
|
||||||
var result135 = buffer.readChar()
|
|
||||||
result132.append(result135)
|
|
||||||
packet.hhh = result132
|
|
||||||
var result136 = []
|
|
||||||
var size138 = buffer.readInt()
|
|
||||||
if (size138 > 0):
|
|
||||||
for index137 in range(size138):
|
|
||||||
var result139 = buffer.readChar()
|
|
||||||
result136.append(result139)
|
|
||||||
packet.hhhh = result136
|
|
||||||
var result140 = buffer.readString()
|
|
||||||
packet.jj = result140
|
|
||||||
var result141 = []
|
|
||||||
var size143 = buffer.readInt()
|
|
||||||
if (size143 > 0):
|
|
||||||
for index142 in range(size143):
|
|
||||||
var result144 = buffer.readString()
|
|
||||||
result141.append(result144)
|
|
||||||
packet.jjj = result141
|
|
||||||
var result145 = buffer.readPacket(102)
|
|
||||||
packet.kk = result145
|
|
||||||
var result146 = []
|
|
||||||
var size148 = buffer.readInt()
|
|
||||||
if (size148 > 0):
|
|
||||||
for index147 in range(size148):
|
|
||||||
var result149 = buffer.readPacket(102)
|
|
||||||
result146.append(result149)
|
|
||||||
packet.kkk = result146
|
|
||||||
var result150 = []
|
|
||||||
var size152 = buffer.readInt()
|
|
||||||
if (size152 > 0):
|
|
||||||
for index151 in range(size152):
|
|
||||||
var result153 = buffer.readInt()
|
|
||||||
result150.append(result153)
|
|
||||||
packet.l = result150
|
|
||||||
var result154 = []
|
|
||||||
var size156 = buffer.readInt()
|
|
||||||
if (size156 > 0):
|
|
||||||
for index155 in range(size156):
|
|
||||||
var result157 = []
|
|
||||||
var size159 = buffer.readInt()
|
|
||||||
if (size159 > 0):
|
|
||||||
for index158 in range(size159):
|
|
||||||
var result160 = []
|
|
||||||
var size162 = buffer.readInt()
|
|
||||||
if (size162 > 0):
|
|
||||||
for index161 in range(size162):
|
|
||||||
var result163 = buffer.readInt()
|
|
||||||
result160.append(result163)
|
|
||||||
result157.append(result160)
|
|
||||||
result154.append(result157)
|
|
||||||
packet.ll = result154
|
|
||||||
var result164 = []
|
|
||||||
var size166 = buffer.readInt()
|
|
||||||
if (size166 > 0):
|
|
||||||
for index165 in range(size166):
|
|
||||||
var result167 = []
|
|
||||||
var size169 = buffer.readInt()
|
|
||||||
if (size169 > 0):
|
|
||||||
for index168 in range(size169):
|
|
||||||
var result170 = buffer.readPacket(102)
|
|
||||||
result167.append(result170)
|
|
||||||
result164.append(result167)
|
|
||||||
packet.lll = result164
|
|
||||||
var result171 = []
|
|
||||||
var size173 = buffer.readInt()
|
|
||||||
if (size173 > 0):
|
|
||||||
for index172 in range(size173):
|
|
||||||
var result174 = buffer.readString()
|
|
||||||
result171.append(result174)
|
|
||||||
packet.llll = result171
|
|
||||||
var result175 = []
|
|
||||||
var size177 = buffer.readInt()
|
|
||||||
if (size177 > 0):
|
|
||||||
for index176 in range(size177):
|
|
||||||
var result178 = {}
|
|
||||||
var size179 = buffer.readInt()
|
|
||||||
if (size179 > 0):
|
|
||||||
for index180 in range(size179):
|
|
||||||
var result181 = buffer.readInt()
|
|
||||||
var result182 = buffer.readString()
|
|
||||||
result178[result181] = result182
|
|
||||||
result175.append(result178)
|
|
||||||
packet.lllll = result175
|
|
||||||
var result183 = {}
|
|
||||||
var size184 = buffer.readInt()
|
|
||||||
if (size184 > 0):
|
|
||||||
for index185 in range(size184):
|
|
||||||
var result186 = buffer.readInt()
|
|
||||||
var result187 = buffer.readString()
|
|
||||||
result183[result186] = result187
|
|
||||||
packet.m = result183
|
|
||||||
var result188 = {}
|
|
||||||
var size189 = buffer.readInt()
|
|
||||||
if (size189 > 0):
|
|
||||||
for index190 in range(size189):
|
|
||||||
var result191 = buffer.readInt()
|
|
||||||
var result192 = buffer.readPacket(102)
|
|
||||||
result188[result191] = result192
|
|
||||||
packet.mm = result188
|
|
||||||
var result193 = {}
|
|
||||||
var size194 = buffer.readInt()
|
|
||||||
if (size194 > 0):
|
|
||||||
for index195 in range(size194):
|
|
||||||
var result196 = buffer.readPacket(102)
|
|
||||||
var result197 = []
|
|
||||||
var size199 = buffer.readInt()
|
|
||||||
if (size199 > 0):
|
|
||||||
for index198 in range(size199):
|
|
||||||
var result200 = buffer.readInt()
|
|
||||||
result197.append(result200)
|
|
||||||
result193[result196] = result197
|
|
||||||
packet.mmm = result193
|
|
||||||
var result201 = {}
|
|
||||||
var size202 = buffer.readInt()
|
|
||||||
if (size202 > 0):
|
|
||||||
for index203 in range(size202):
|
|
||||||
var result204 = []
|
|
||||||
var size206 = buffer.readInt()
|
|
||||||
if (size206 > 0):
|
|
||||||
for index205 in range(size206):
|
|
||||||
var result207 = []
|
|
||||||
var size209 = buffer.readInt()
|
|
||||||
if (size209 > 0):
|
|
||||||
for index208 in range(size209):
|
|
||||||
var result210 = buffer.readPacket(102)
|
|
||||||
result207.append(result210)
|
|
||||||
result204.append(result207)
|
|
||||||
var result211 = []
|
|
||||||
var size213 = buffer.readInt()
|
|
||||||
if (size213 > 0):
|
|
||||||
for index212 in range(size213):
|
|
||||||
var result214 = []
|
|
||||||
var size216 = buffer.readInt()
|
|
||||||
if (size216 > 0):
|
|
||||||
for index215 in range(size216):
|
|
||||||
var result217 = []
|
|
||||||
var size219 = buffer.readInt()
|
|
||||||
if (size219 > 0):
|
|
||||||
for index218 in range(size219):
|
|
||||||
var result220 = buffer.readInt()
|
|
||||||
result217.append(result220)
|
|
||||||
result214.append(result217)
|
|
||||||
result211.append(result214)
|
|
||||||
result201[result204] = result211
|
|
||||||
packet.mmmm = result201
|
|
||||||
var result221 = {}
|
|
||||||
var size222 = buffer.readInt()
|
|
||||||
if (size222 > 0):
|
|
||||||
for index223 in range(size222):
|
|
||||||
var result224 = []
|
|
||||||
var size226 = buffer.readInt()
|
|
||||||
if (size226 > 0):
|
|
||||||
for index225 in range(size226):
|
|
||||||
var result227 = {}
|
|
||||||
var size228 = buffer.readInt()
|
|
||||||
if (size228 > 0):
|
|
||||||
for index229 in range(size228):
|
|
||||||
var result230 = buffer.readInt()
|
|
||||||
var result231 = buffer.readString()
|
|
||||||
result227[result230] = result231
|
|
||||||
result224.append(result227)
|
|
||||||
var result232 = []
|
|
||||||
var size234 = buffer.readInt()
|
|
||||||
if (size234 > 0):
|
|
||||||
for index233 in range(size234):
|
|
||||||
var result235 = {}
|
|
||||||
var size236 = buffer.readInt()
|
|
||||||
if (size236 > 0):
|
|
||||||
for index237 in range(size236):
|
|
||||||
var result238 = buffer.readInt()
|
|
||||||
var result239 = buffer.readString()
|
|
||||||
result235[result238] = result239
|
|
||||||
result232.append(result235)
|
|
||||||
result221[result224] = result232
|
|
||||||
packet.mmmmm = result221
|
|
||||||
var result240 = []
|
|
||||||
var size242 = buffer.readInt()
|
|
||||||
if (size242 > 0):
|
|
||||||
for index241 in range(size242):
|
|
||||||
var result243 = buffer.readInt()
|
|
||||||
result240.append(result243)
|
|
||||||
packet.s = result240
|
|
||||||
var result244 = []
|
|
||||||
var size246 = buffer.readInt()
|
|
||||||
if (size246 > 0):
|
|
||||||
for index245 in range(size246):
|
|
||||||
var result247 = []
|
|
||||||
var size249 = buffer.readInt()
|
|
||||||
if (size249 > 0):
|
|
||||||
for index248 in range(size249):
|
|
||||||
var result250 = []
|
|
||||||
var size252 = buffer.readInt()
|
|
||||||
if (size252 > 0):
|
|
||||||
for index251 in range(size252):
|
|
||||||
var result253 = buffer.readInt()
|
|
||||||
result250.append(result253)
|
|
||||||
result247.append(result250)
|
|
||||||
result244.append(result247)
|
|
||||||
packet.ss = result244
|
|
||||||
var result254 = []
|
|
||||||
var size256 = buffer.readInt()
|
|
||||||
if (size256 > 0):
|
|
||||||
for index255 in range(size256):
|
|
||||||
var result257 = []
|
|
||||||
var size259 = buffer.readInt()
|
|
||||||
if (size259 > 0):
|
|
||||||
for index258 in range(size259):
|
|
||||||
var result260 = buffer.readPacket(102)
|
|
||||||
result257.append(result260)
|
|
||||||
result254.append(result257)
|
|
||||||
packet.sss = result254
|
|
||||||
var result261 = []
|
|
||||||
var size263 = buffer.readInt()
|
|
||||||
if (size263 > 0):
|
|
||||||
for index262 in range(size263):
|
|
||||||
var result264 = buffer.readString()
|
|
||||||
result261.append(result264)
|
|
||||||
packet.ssss = result261
|
|
||||||
var result265 = []
|
|
||||||
var size267 = buffer.readInt()
|
|
||||||
if (size267 > 0):
|
|
||||||
for index266 in range(size267):
|
|
||||||
var result268 = {}
|
|
||||||
var size269 = buffer.readInt()
|
|
||||||
if (size269 > 0):
|
|
||||||
for index270 in range(size269):
|
|
||||||
var result271 = buffer.readInt()
|
|
||||||
var result272 = buffer.readString()
|
|
||||||
result268[result271] = result272
|
|
||||||
result265.append(result268)
|
|
||||||
packet.sssss = result265
|
|
||||||
return packet
|
return packet
|
||||||
|
|
|
@ -25,12 +25,7 @@ static func write(buffer, packet):
|
||||||
if (buffer.writePacketFlag(packet)):
|
if (buffer.writePacketFlag(packet)):
|
||||||
return
|
return
|
||||||
buffer.writeByte(packet.a)
|
buffer.writeByte(packet.a)
|
||||||
if (packet.aaa == null):
|
buffer.writeByteArray(packet.aaa)
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.aaa.size());
|
|
||||||
for element0 in packet.aaa:
|
|
||||||
buffer.writeByte(element0)
|
|
||||||
buffer.writeShort(packet.b)
|
buffer.writeShort(packet.b)
|
||||||
buffer.writeInt(packet.c)
|
buffer.writeInt(packet.c)
|
||||||
buffer.writeLong(packet.d)
|
buffer.writeLong(packet.d)
|
||||||
|
@ -38,146 +33,55 @@ static func write(buffer, packet):
|
||||||
buffer.writeDouble(packet.f)
|
buffer.writeDouble(packet.f)
|
||||||
buffer.writeBool(packet.g)
|
buffer.writeBool(packet.g)
|
||||||
buffer.writeString(packet.jj)
|
buffer.writeString(packet.jj)
|
||||||
buffer.writePacket(packet.kk, 102);
|
buffer.writePacket(packet.kk, 102)
|
||||||
if (packet.l == null):
|
buffer.writeIntArray(packet.l)
|
||||||
buffer.writeInt(0)
|
buffer.writeLongArray(packet.ll)
|
||||||
else:
|
buffer.writePacketArray(packet.lll, 102)
|
||||||
buffer.writeInt(packet.l.size());
|
buffer.writeStringArray(packet.llll)
|
||||||
for element1 in packet.l:
|
buffer.writeIntStringMap(packet.m)
|
||||||
buffer.writeInt(element1)
|
buffer.writeIntPacketMap(packet.mm, 102)
|
||||||
if (packet.ll == null):
|
buffer.writeIntArray(packet.s)
|
||||||
buffer.writeInt(0)
|
buffer.writeStringArray(packet.ssss)
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.ll.size());
|
|
||||||
for element2 in packet.ll:
|
|
||||||
buffer.writeLong(element2)
|
|
||||||
if (packet.lll == null):
|
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.lll.size());
|
|
||||||
for element3 in packet.lll:
|
|
||||||
buffer.writePacket(element3, 102);
|
|
||||||
if (packet.llll == null):
|
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.llll.size());
|
|
||||||
for element4 in packet.llll:
|
|
||||||
buffer.writeString(element4)
|
|
||||||
if (packet.m == null):
|
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.m.size())
|
|
||||||
for key5 in packet.m:
|
|
||||||
var value6 = packet.m[key5]
|
|
||||||
buffer.writeInt(key5)
|
|
||||||
buffer.writeString(value6)
|
|
||||||
if (packet.mm == null):
|
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.mm.size())
|
|
||||||
for key7 in packet.mm:
|
|
||||||
var value8 = packet.mm[key7]
|
|
||||||
buffer.writeInt(key7)
|
|
||||||
buffer.writePacket(value8, 102);
|
|
||||||
if (packet.s == null):
|
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.s.size());
|
|
||||||
for element9 in packet.s:
|
|
||||||
buffer.writeInt(element9)
|
|
||||||
if (packet.ssss == null):
|
|
||||||
buffer.writeInt(0)
|
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.ssss.size());
|
|
||||||
for element10 in packet.ssss:
|
|
||||||
buffer.writeString(element10)
|
|
||||||
|
|
||||||
|
|
||||||
static func read(buffer):
|
static func read(buffer):
|
||||||
if (!buffer.readBool()):
|
if (!buffer.readBool()):
|
||||||
return null
|
return null
|
||||||
var packet = buffer.newInstance(101)
|
var packet = buffer.newInstance(101)
|
||||||
var result11 = buffer.readByte()
|
var result0 = buffer.readByte()
|
||||||
packet.a = result11
|
packet.a = result0
|
||||||
var result12 = []
|
var array1 = buffer.readByteArray()
|
||||||
var size14 = buffer.readInt()
|
packet.aaa = array1
|
||||||
if (size14 > 0):
|
var result2 = buffer.readShort()
|
||||||
for index13 in range(size14):
|
packet.b = result2
|
||||||
var result15 = buffer.readByte()
|
var result3 = buffer.readInt()
|
||||||
result12.append(result15)
|
packet.c = result3
|
||||||
packet.aaa = result12
|
var result4 = buffer.readLong()
|
||||||
var result16 = buffer.readShort()
|
packet.d = result4
|
||||||
packet.b = result16
|
var result5 = buffer.readFloat()
|
||||||
var result17 = buffer.readInt()
|
packet.e = result5
|
||||||
packet.c = result17
|
var result6 = buffer.readDouble()
|
||||||
var result18 = buffer.readLong()
|
packet.f = result6
|
||||||
packet.d = result18
|
var result7 = buffer.readBool()
|
||||||
var result19 = buffer.readFloat()
|
packet.g = result7
|
||||||
packet.e = result19
|
var result8 = buffer.readString()
|
||||||
var result20 = buffer.readDouble()
|
packet.jj = result8
|
||||||
packet.f = result20
|
var result9 = buffer.readPacket(102)
|
||||||
var result21 = buffer.readBool()
|
packet.kk = result9
|
||||||
packet.g = result21
|
var list10 = buffer.readIntArray()
|
||||||
var result22 = buffer.readString()
|
packet.l = list10
|
||||||
packet.jj = result22
|
var list11 = buffer.readLongArray()
|
||||||
var result23 = buffer.readPacket(102)
|
packet.ll = list11
|
||||||
packet.kk = result23
|
var list12 = buffer.readPacketArray(102)
|
||||||
var result24 = []
|
packet.lll = list12
|
||||||
var size26 = buffer.readInt()
|
var list13 = buffer.readStringArray()
|
||||||
if (size26 > 0):
|
packet.llll = list13
|
||||||
for index25 in range(size26):
|
var map14 = buffer.readIntStringMap()
|
||||||
var result27 = buffer.readInt()
|
packet.m = map14
|
||||||
result24.append(result27)
|
var map15 = buffer.readIntPacketMap(102)
|
||||||
packet.l = result24
|
packet.mm = map15
|
||||||
var result28 = []
|
var set16 = buffer.readIntArray()
|
||||||
var size30 = buffer.readInt()
|
packet.s = set16
|
||||||
if (size30 > 0):
|
var set17 = buffer.readStringArray()
|
||||||
for index29 in range(size30):
|
packet.ssss = set17
|
||||||
var result31 = buffer.readLong()
|
|
||||||
result28.append(result31)
|
|
||||||
packet.ll = result28
|
|
||||||
var result32 = []
|
|
||||||
var size34 = buffer.readInt()
|
|
||||||
if (size34 > 0):
|
|
||||||
for index33 in range(size34):
|
|
||||||
var result35 = buffer.readPacket(102)
|
|
||||||
result32.append(result35)
|
|
||||||
packet.lll = result32
|
|
||||||
var result36 = []
|
|
||||||
var size38 = buffer.readInt()
|
|
||||||
if (size38 > 0):
|
|
||||||
for index37 in range(size38):
|
|
||||||
var result39 = buffer.readString()
|
|
||||||
result36.append(result39)
|
|
||||||
packet.llll = result36
|
|
||||||
var result40 = {}
|
|
||||||
var size41 = buffer.readInt()
|
|
||||||
if (size41 > 0):
|
|
||||||
for index42 in range(size41):
|
|
||||||
var result43 = buffer.readInt()
|
|
||||||
var result44 = buffer.readString()
|
|
||||||
result40[result43] = result44
|
|
||||||
packet.m = result40
|
|
||||||
var result45 = {}
|
|
||||||
var size46 = buffer.readInt()
|
|
||||||
if (size46 > 0):
|
|
||||||
for index47 in range(size46):
|
|
||||||
var result48 = buffer.readInt()
|
|
||||||
var result49 = buffer.readPacket(102)
|
|
||||||
result45[result48] = result49
|
|
||||||
packet.mm = result45
|
|
||||||
var result50 = []
|
|
||||||
var size52 = buffer.readInt()
|
|
||||||
if (size52 > 0):
|
|
||||||
for index51 in range(size52):
|
|
||||||
var result53 = buffer.readInt()
|
|
||||||
result50.append(result53)
|
|
||||||
packet.s = result50
|
|
||||||
var result54 = []
|
|
||||||
var size56 = buffer.readInt()
|
|
||||||
if (size56 > 0):
|
|
||||||
for index55 in range(size56):
|
|
||||||
var result57 = buffer.readString()
|
|
||||||
result54.append(result57)
|
|
||||||
packet.ssss = result54
|
|
||||||
return packet
|
return packet
|
||||||
|
|
|
@ -10,31 +10,18 @@ static func write(buffer, packet):
|
||||||
if (buffer.writePacketFlag(packet)):
|
if (buffer.writePacketFlag(packet)):
|
||||||
return
|
return
|
||||||
buffer.writeInt(packet.a)
|
buffer.writeInt(packet.a)
|
||||||
if (packet.m == null):
|
buffer.writeIntStringMap(packet.m)
|
||||||
buffer.writeInt(0)
|
buffer.writePacket(packet.objectB, 103)
|
||||||
else:
|
|
||||||
buffer.writeInt(packet.m.size())
|
|
||||||
for key0 in packet.m:
|
|
||||||
var value1 = packet.m[key0]
|
|
||||||
buffer.writeInt(key0)
|
|
||||||
buffer.writeString(value1)
|
|
||||||
buffer.writePacket(packet.objectB, 103);
|
|
||||||
|
|
||||||
|
|
||||||
static func read(buffer):
|
static func read(buffer):
|
||||||
if (!buffer.readBool()):
|
if (!buffer.readBool()):
|
||||||
return null
|
return null
|
||||||
var packet = buffer.newInstance(102)
|
var packet = buffer.newInstance(102)
|
||||||
var result2 = buffer.readInt()
|
var result0 = buffer.readInt()
|
||||||
packet.a = result2
|
packet.a = result0
|
||||||
var result3 = {}
|
var map1 = buffer.readIntStringMap()
|
||||||
var size4 = buffer.readInt()
|
packet.m = map1
|
||||||
if (size4 > 0):
|
var result2 = buffer.readPacket(103)
|
||||||
for index5 in range(size4):
|
packet.objectB = result2
|
||||||
var result6 = buffer.readInt()
|
|
||||||
var result7 = buffer.readString()
|
|
||||||
result3[result6] = result7
|
|
||||||
packet.m = result3
|
|
||||||
var result8 = buffer.readPacket(103)
|
|
||||||
packet.objectB = result8
|
|
||||||
return packet
|
return packet
|
||||||
|
|
Loading…
Reference in New Issue