blosc2.get_cbuffer_sizes#
- blosc2.get_cbuffer_sizes(src: object) tuple[int, int, int] #
Get the sizes of a compressed src buffer.
- Parameters:
src¶ (bytes-like object) – A compressed buffer. Must be a bytes-like object that supports the Python Buffer Protocol, such as bytes, bytearray, memoryview, or numpy.ndarray.
- Returns:
(nbytes, cbytes, blocksize) – A tuple containing the number of bytes (nbytes), the compressed size in bytes (cbytes) and the block size in bytes (blocksize) of the src compressed buffer.
- Return type:
tuple