Skip to main content

Module compress

Module compress 

Source
Expand description

Native compress module for data compression and decompression.

Exports: compress.gzip, compress.gunzip, compress.zstd, compress.unzstd, compress.deflate, compress.inflate

Phase 4b: all 6 exports migrated to TypedModuleExports. Phase 2c: ported to the typed marshal layer (option β: owned Vec<i64> / Vec<u8> / Arc<String> via FromSlot, TypedReturn::Concrete( ConcreteReturn::Bytes | ConcreteReturn::String) outputs). The 3 compress functions return ConcreteReturn::Bytes (semantically Array<int> of u8 widened to i64); the 3 decompress functions return ConcreteReturn::String.

Functions§

create_compress_module
Create the compress module with compression/decompression functions.