Gary Peck
08/17/2024, 9:35 AMJavier
10/09/2024, 9:24 PMkotlinx-ioresourcesalexandre mommers
10/11/2024, 1:20 PMMorten Minke
11/25/2024, 7:39 PMreadIntoreadAtMostToclass PlatformInputStreamSource(
    private val platformInputStream: PlatformInputStream
) : RawSource {
    override fun readAtMostTo(sink: Buffer, byteCount: Long): Long {
        ...
        
        << Here i need to start a coroutine context and wait for the numberOfBytesCopied
        val numberOfBytesCopied = platformInputStream.readInto(buffer, byteCount, bufferSize))
        
        ...
        
        << This non suspend function needs to return the number of bytes copied and therefor has to wait for the result from the readInto function.
        return numberOfBytesCopied.toLong()
    }
}suresh
11/25/2024, 9:49 PMhfhbd
11/26/2024, 8:59 PMmyRawSource.buffered().buffered().buffered()Source.buffered() = thishfhbd
12/04/2024, 12:49 PMChris Lee
12/05/2024, 7:15 PMedenman
12/06/2024, 7:02 PMMark
12/09/2024, 5:37 AMTóth István Zoltán
12/26/2024, 6:10 AMfun Path.copy(target: Path, override: Boolean = false) {
    check(target.exists() && ! override) { "file $target already exists" }
    SystemFileSystem.sink(target, append = false).buffered().use { sink ->
        SystemFileSystem.source(this).buffered().use { source ->
            source.transferTo(sink)
        }
    }
}Rob Elliot
03/14/2025, 10:13 AMkotlinx.io.asSourceRawSourceSourcekotlinx.io.asRawSourcekotlinx.io.asSource.asRawSource().buffered()Tóth István Zoltán
03/20/2025, 5:55 AMatomicMove<http://kotlinx.io|kotlinx.io>deleteatomicMoveedenman
04/03/2025, 3:51 PMSourceRTAkland
04/05/2025, 10:57 AMhfhbd
04/09/2025, 10:25 AMrawSource.readAtMostTo()BufferRawSinkdiscardingSinkdiscardingSink().buffered().bufferRTAkland
04/18/2025, 7:00 AMkevin.cianfarini
04/25/2025, 8:04 PMdummy: Any?hfhbd
05/08/2025, 6:41 AMursus
05/23/2025, 3:06 PMFileSystemexperimentalZyle Moore
06/08/2025, 9:43 PMBufferMatt Nelson
06/11/2025, 10:37 PM0.3.0joseph_ivie
08/06/2025, 8:45 PMTóth István Zoltán
08/07/2025, 8:58 AMTóth István Zoltán
08/07/2025, 9:15 AMjoseph_ivie
08/14/2025, 11:01 PMiseki
09/30/2025, 6:17 PMdeleteIfExistsNoSuchFileExceptionrnett
10/01/2025, 11:13 PMMessageDigestiseki
10/02/2025, 3:08 PMiseki
10/13/2025, 2:18 PMbyteCountInt.MAX_VALUEoverride fun write(
        source: Buffer,
        byteCount: Long
    ) {
        require(byteCount >= 0L) { "byteCount: $byteCount" }
        require(source.size >= byteCount) { "source.size=${source.size} < byteCount=$byteCount" }
        check(!closed) { "closed" }
        val allContent = source.readByteArray(byteCount.toInt())
        // Copy bytes from that segment into the file.
        val bytesWritten = allContent.usePinned { pinned ->
            variantFwrite(pinned.addressOf(0), byteCount.toUInt(), file).toLong()
        }
        if (bytesWritten < byteCount) {
            throwIOExceptionForErrno("file write")
        }
    }