class CompressionSource
source · line 11public
public class CompressionSource private constructor(private val stream: SyncCompressionSource) : ByteSource, Closeable
- Supertype
ByteSource - Supertype
Closeable - Inherited
fun dispose(): Unit· Closeable
A synchronous compression source adapter with bounded buffering. The ordinary constructor borrows its endpoint; takeOwnership also assumes endpoint close responsibility. Reading to EOF completes format validation; early close does not.
function readInto
source · line 41public
public override fun readInto(buffer: NativeByteBuffer, count: Long): Long
- Overrides
readInto
Produces up to count transformed bytes into the writable buffer region. EOF completes the format; short reads are permitted.
parameter count
source · line 41public
count: Long
parameter buffer
source · line 41public
buffer: NativeByteBuffer
function close
source · line 46public
public override fun close(): Unit
- Overrides
close
Releases codec state and closes an endpoint whose ownership was transferred. It does not force incomplete data to finish.
constructor constructor
source · line 12public
constructor(source: ByteSource, options: CompressionOptions = CompressionOptions.Zstd(ZstdOptions()), bufferSize: Long = 8192L)
parameter options
source · line 12public
options: CompressionOptions = CompressionOptions.Zstd(ZstdOptions())
parameter bufferSize
source · line 13public
bufferSize: Long = 8192L
parameter source
source · line 12public
source: ByteSource
property totals
source · line 32public
public val totals: CompressionTotals
get: public read-only
The actual input accepted and output delivered so far.
getter get
source · line 32public
get(): CompressionTotals
property failure
source · line 36public
public val failure: Throwable?
get: public read-only
The retained terminal failure, or None before failure.
getter get
source · line 36public
get(): Option<Throwable>