fields.buffers.base.BufferBase.reshape#
- BufferBase.reshape(shape, *args, **kwargs) BufferBase [source]#
Return a reshaped copy of this buffer.
This reshapes the buffer into a new shape and returns a new buffer instance. The reshaping is done using the NumPy-compatible view returned by as_repr().
- Parameters:
- Returns:
A new buffer with reshaped data.
- Return type: