fields.buffers.base.BufferBase.copy#
- BufferBase.copy(*args, **kwargs) BufferBase [source]#
Return a deep copy of this buffer.
This creates a new buffer instance containing a copy of the underlying array data. Any units or backend metadata are preserved, and the copy is fully detached from the original.
- Parameters:
*args – Additional positional arguments forwarded to
from_array()
.**kwargs – Additional keyword arguments forwarded to
from_array()
.
- Returns:
A deep copy of the current buffer.
- Return type: