kotlin.io.java.io.File.forEachBlock
forEachBlock
fun File.forEachBlock( action: (buffer: ByteArray, bytesRead: Int) -> Unit)
Platform and version requirements: JVM
Reads file by byte blocks and calls action for each block read. Block has default size which is implementation-dependent. This functions passes the byte array and amount of bytes in the array to the 登录查看完整内容