Esc

inflate_sync

procedureextensionsince 0.36.1Source
  • macOS: inflate_sync works on macOS
  • Linux: inflate_sync works on Linux
  • Windows: inflate_sync works on Windows
  • Wasm: inflate_sync works on Wasm

Decodes a sync-flushed message with a borrowed history tail (at most 32 KiB). Output excludes the dictionary and must be freed. The output budget excludes history too. Example: plain, ok := inflate_sync(packed, .[], 1024); if ok free(plain.data).

Signature

inflate_sync :: (
    data: [] u8,
    dictionary: [] u8,
    max_output: s64 = DEFAULT_MAX_OUTPUT,
    window_bits: int = 15
) -> (output: [] u8, ok: bool, error: string)

See also