Compressor
struct CompressorA streaming zstd compressor over ZSTD_CCtx (the modern API's ZSTD_CStream). Feed chunks to update(); call finish() once at the end to flush the trailing block and frame epilogue.
Implements Movable
__init__
def __init__(out self, level: Int = Int(3)) __deinit__
def __deinit__(deinit self) update
def update(mut self, chunk: Span[UInt8]) -> List[UInt8] Compresses chunk, returning whatever compressed bytes libzstd was ready to emit (may be less than a full block; may be empty).
finish
def finish(mut self) -> List[UInt8] Flushes the trailing block and frame epilogue (checksum, content size if pledged). Call exactly once, after the last update().