## ReadOnlyMemory::to_ReadOnlyMemory method


Creates a [ReadOnlyMemory](../) instance from the specified array.

```cpp
static ReadOnlyMemory System::ReadOnlyMemory<T>::to_ReadOnlyMemory(const ArrayPtr<T> &array)
```


| Parameter | Type | Description |
| --- | --- | --- |
| array | const ArrayPtr\<T\>\& | The source array. |

### ReturnValue

A [ReadOnlyMemory](../) object that wraps the array.

## See Also

* Class [ReadOnlyMemory](../)
* Typedef [ArrayPtr](../../arrayptr/)
* Class [ReadOnlyMemory](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
