Deflate module

deflate

procedure · 1 overloadsince 0.28.0Source

Compresses data. level runs from 0 (stored blocks only) to 9 (smallest); 6 is the usual balance. Out-of-range levels are clamped.

deflate :: (
    data: [] u8,
    container := Deflate_Container.ZLIB,
    level: s32 = 6
) -> [] u8

Compresses data. level runs from 0 (stored blocks only) to 9 (smallest); 6 is the usual balance. Out-of-range levels are clamped.

Parameters

data: [] u8
container := Deflate_Container.ZLIB
level: s32

Returns

[] u8

See also