fields.buffers.core.ArrayBuffer.__init__#

ArrayBuffer.__init__(array: ndarray)[source]#

Initialize the buffer with a NumPy array.

Parameters:

array (numpy.ndarray) – A NumPy array to wrap. This should already be an instance of numpy.ndarray. Use from_array() or coerce() for flexible inputs.