blosc2.schunk_from_cframe#

blosc2.schunk_from_cframe(cframe, copy=False)#

Create a SChunk instance out of a contiguous frame buffer.

Parameters:
  • cframe (bytes /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 SChunk containing the data passed.

Return type:

SChunk

See also

to_cframe()