fields.components.FieldComponent.as_buffer_core#

FieldComponent.as_buffer_core() Any[source]#

Return the raw backend array (e.g., np.ndarray, unyt_array, h5py.Dataset).

This gives direct access to the underlying array-like object stored in the buffer, allowing low-level operations or access to backend-specific APIs.

Returns:

The native backend array object wrapped by the buffer.

Return type:

Any