Commit 10e6c519 authored by Him188's avatar Him188

Make inline

parent ce7c9f8c
...@@ -34,7 +34,7 @@ fun ByteReadPacket.transferTo(outputStream: OutputStream) { ...@@ -34,7 +34,7 @@ fun ByteReadPacket.transferTo(outputStream: OutputStream) {
} }
} }
fun <R> ByteReadPacket.useBytes( inline fun <R> ByteReadPacket.useBytes(
n: Int = remaining.toInt(),//not that safe but adequate n: Int = remaining.toInt(),//not that safe but adequate
block: (data: ByteArray, length: Int) -> R block: (data: ByteArray, length: Int) -> R
): R = ByteArrayPool.useInstance { ): R = ByteArrayPool.useInstance {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment