Merge remote-tracking branch 'origin/master'

This commit is contained in:
jiahua.liu 2020-01-30 20:49:32 +08:00
commit 6fff5b2757

View File

@ -50,8 +50,7 @@ fun <T : ProtoBuf> ByteReadPacket.decodeUniPacket(deserializer: DeserializationS
}
}
private fun <R> ByteReadPacket.decodeUniRequestPacketAndDeserialize(name: String? = null, block: (ByteArray) -> R): R {
fun <R> ByteReadPacket.decodeUniRequestPacketAndDeserialize(name: String? = null, block: (ByteArray) -> R): R {
val request = this.readRemainingAsJceStruct(RequestPacket.serializer())
return block(if (name == null) when (request.iVersion.toInt()) {