blosc2.ndarray_from_cframe#

blosc2.ndarray_from_cframe(cframe: bytes | str, copy: bool = False) NDArray#

Create a NDArray instance out of a contiguous frame buffer.

Parameters:
  • cframe (bytes or str) – The bytes object containing the in-memory cframe.

  • copy (bool) – Whether to internally do a copy or not. If False, the user is responsible for keeping a reference to cframe.

Returns:

out – A new NDArray containing the data passed.

Return type:

NDArray

See also

to_cframe()