- blosc2.decompress2(src, dst=None, **kwargs)#
srcwith the given compression params (if given)
src¶ (bytes-like object) – The data to be decompressed. Must be a bytes-like object that supports the Python Buffer Protocol, like bytes, bytearray, memoryview, or numpy.ndarray.
dst¶ (NumPy object or bytearray) – The destination NumPy object or bytearray to fill, the length of which must be greater than 0. The user must make sure that it has enough capacity for hosting the decompressed data. Default is None, meaning that a new bytes object is created, filled and returned.
kwargs¶ (dict, optional) – Keyword arguments supported: nthreads: int The number of threads to use internally (1 by default).
- Return type:
RuntimeError – If the data cannot be compressed into
dst. If an internal error occurred, probably because some parameter is not a valid one. If
dstis None and could not create a bytes object to store the result.
TypeError – If
srcdoes not support the Buffer Protocol.