Deflate module

inflate_into

procedure · 1 overloadsince 0.28.0Source

Like inflate, into a buffer the caller sized. Fails with "output is too small" when the stream expands past output; nothing is written beyond it.

inflate_into :: (
    data: [] u8,
    output: [] u8,
    container := Deflate_Container.ZLIB
) -> (written: s64, ok: bool, error: string)

Like inflate, into a buffer the caller sized. Fails with "output is too small" when the stream expands past output; nothing is written beyond it.

Parameters

data: [] u8
output: [] u8
container := Deflate_Container.ZLIB

Returns

written: s64
ok: bool
error: string

See also