itkwasm_compress_stringify.parse_string_decompress

Module Contents

Functions

parse_string_decompress

Given a binary or string produced with compress-stringify, decompress and optionally base64 decode.

API

itkwasm_compress_stringify.parse_string_decompress.parse_string_decompress(input: bytes, parse_string: bool = False) bytes

Given a binary or string produced with compress-stringify, decompress and optionally base64 decode.

Parameters:
  • input (bytes) – Compressed input

  • parse_string (bool) – Parse the input string before decompression

Returns:

Output decompressed binary

Return type:

bytes