caterva.from_buffer#

caterva.from_buffer(buffer, shape, itemsize, **kwargs)#

Create an array out of a buffer.

Parameters
buffer: bytes

The buffer of the data to populate the container.

shape: tuple or list

The shape for the final container.

itemsize: int

The size, in bytes, of each element.

Returns
out: NDArray

A NDArray is returned.

Other Parameters
kwargs: dict, optional

Keyword arguments that are supported by the caterva.empty() constructor.