mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-08 17:20:11 +08:00
Use supertype Input
This commit is contained in:
parent
ad962c3d92
commit
5ca444da26
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user