extractEntry

@ObjCName(name = "extractEntry", swiftName = "extract")
abstract fun extractEntry(entry: ArchiveEntry, sink: Sink)(source)

Decompresses the specified entry and streams its raw content into sink.

Extraction is performed in fixed-size chunks without materializing the entire uncompressed entry in heap memory.

Parameters

entry

the ArchiveEntry obtained from getEntries to extract.

sink

the destination Sink that receives decompressed bytes.

Throws

if decompression fails, CRC verification fails, or an I/O error occurs in the underlying source or sink.

if this reader has already been closed or is called re-entrantly from an active I/O callback.