Method GetReadOnlyMemory
| Edit this page View SourceGetReadOnlyMemory()
Gets a read-only memory representation of the underlying buffer storing the grid values.
Declaration
public ReadOnlyMemory<T> GetReadOnlyMemory()
Returns
| Type | Description |
|---|---|
| ReadOnlyMemory<T> |
Implements
Remarks
Use this if you need to pass the grid data to APIs that require ReadOnlyMemory, such as asynchronous methods or APIs that work with memory buffers. For most use cases, GetReadOnlyBuffer() or GetBuffer() will be more efficient for direct access to the grid data.