Use supertype Input

This commit is contained in:
Him188 2020-01-03 17:32:49 +08:00
parent ad962c3d92
commit 5ca444da26

View File

@ -51,7 +51,7 @@ fun ByteReadPacket.debugPrint(name: String = ""): ByteReadPacket {
}
}
inline fun <R> ByteReadPacket.debugPrintIfFail(name: String = "", block: ByteReadPacket.() -> R): R {
inline fun <R> Input.debugPrintIfFail(name: String = "", block: ByteReadPacket.() -> R): R {
ByteArrayPool.useInstance {
val count = this.readAvailable(it)
try {