Make public

This commit is contained in:
Him188 2020-01-30 20:48:22 +08:00
parent b93b6d1923
commit db4954bae1

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()) {