Scoop API

scoop:scoop.platform:0.1.0

BufferedSource

class BufferedSource

source · line 9
public
public class BufferedSource private constructor(
    private val source: ByteSource,
    private val internalBuffer: NativeByteBuffer,
    private val owner: Closeable?
) : ByteSource, Closeable

A synchronous read-ahead adapter. Its ordinary constructor borrows the source; takeOwnership transfers source cleanup responsibility. Operations on one adapter must not overlap.

function close

source · line 61
public
public override fun close(): Unit

Closes internal buffering and the source only when ownership was transferred.