diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/io/DebugUtil.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/io/DebugUtil.kt index e6ecb2920..80e9253fd 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/io/DebugUtil.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/io/DebugUtil.kt @@ -51,7 +51,7 @@ fun ByteReadPacket.debugPrint(name: String = ""): ByteReadPacket { } } -inline fun ByteReadPacket.debugPrintIfFail(name: String = "", block: ByteReadPacket.() -> R): R { +inline fun Input.debugPrintIfFail(name: String = "", block: ByteReadPacket.() -> R): R { ByteArrayPool.useInstance { val count = this.readAvailable(it) try {