Commit f4024518 authored by Him188's avatar Him188

Make checker inline

parent 9f27cea3
...@@ -358,7 +358,8 @@ private object TEA { ...@@ -358,7 +358,8 @@ private object TEA {
} }
} }
private fun ByteArray.checkDataLengthAndReturnSelf(length: Int = this.size): ByteArray { @Suppress("NOTHING_TO_INLINE")
private inline fun ByteArray.checkDataLengthAndReturnSelf(length: Int = this.size): ByteArray {
require(length % 8 == 0 && length >= 16) { "data must len % 8 == 0 && len >= 16 but given (length=$length) ${this.toUHexString()}" } require(length % 8 == 0 && length >= 16) { "data must len % 8 == 0 && len >= 16 but given (length=$length) ${this.toUHexString()}" }
return this return this
} }
\ No newline at end of file
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