mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 02:20:14 +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 {
|
ByteArrayPool.useInstance {
|
||||||
val count = this.readAvailable(it)
|
val count = this.readAvailable(it)
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user