mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-10 04:00:08 +08:00
Add @JvmSynthetic
This commit is contained in:
parent
c68628f526
commit
e0964eaf77
@ -7,6 +7,7 @@ import kotlinx.io.charsets.Charsets
|
||||
import kotlinx.io.core.ByteReadPacket
|
||||
import kotlinx.io.core.String
|
||||
import kotlinx.io.core.use
|
||||
import kotlin.jvm.JvmSynthetic
|
||||
|
||||
@Suppress("DuplicatedCode") // false positive. foreach is not common to UByteArray and ByteArray
|
||||
@UseExperimental(ExperimentalUnsignedTypes::class)
|
||||
@ -24,6 +25,7 @@ fun ByteArray.toUHexString(separator: String = " ", offset: Int = 0, length: Int
|
||||
}
|
||||
}
|
||||
|
||||
@JvmSynthetic
|
||||
@Suppress("DuplicatedCode") // false positive. foreach is not common to UByteArray and ByteArray
|
||||
@ExperimentalUnsignedTypes
|
||||
fun UByteArray.toUHexString(separator: String = " ", offset: Int = 0, length: Int = this.size - offset): String {
|
||||
|
Loading…
Reference in New Issue
Block a user