Skip to main content

compress_stream

Function compress_stream 

Source
pub fn compress_stream<R: Read, W: Write>(
    reader: R,
    writer: W,
    config: &EngineConfiguration,
) -> Result<u64>
Expand description

Compress a Read stream, writing CRSH output to writer.

Total input size is unknown at start; FileHeader block_count and uncompressed_size are set to u64::MAX (streaming sentinel).

ยงErrors

Returns any error from compress() or the underlying writer.