mirai-core / net.mamoe.mirai.utils / kotlinx.io.core.Input

Extensions for kotlinx.io.core.Input

suspendToExternalImage

IO 中进行 Input.toExternalImage

suspend fun Input.suspendToExternalImage(): ExternalImage

toExternalImage

保存为临时文件然后调用 File.toExternalImage.

fun Input.toExternalImage(): ExternalImage