fields.buffers.core.ArrayBuffer.as_core#
- ArrayBuffer.as_core() _Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str] #
Return the raw backend array object stored in this buffer.
This method provides direct access to the internal array-like object (e.g.,
numpy.ndarray
,unyt.unyt_array
, orh5py.Dataset
) without any conversion or wrapping. It is useful for advanced users who need to access backend-specific methods or metadata not exposed through the generic buffer interface.Unlike
as_array()
, this method returns the native format of the underlying backend, preserving units or lazy behavior if applicable.- Returns:
The unmodified internal array object stored in the buffer.
- Return type:
ArrayLike