## ReadOnlyMemory::Slice method


Creates a slice of the current readonly memory.

```cpp
ReadOnlyMemory System::ReadOnlyMemory<T>::Slice(int32_t start, int32_t length) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| start | int32_t | The starting index of the slice. |
| length | int32_t | The number of elements in the slice. |

### ReturnValue

A [ReadOnlyMemory](../) object representing the requested slice.

## See Also

* Class [ReadOnlyMemory](../)
* Class [ReadOnlyMemory](../)
* Namespace [System](../../)
* Library [Aspose.TeX for C++](../../../)
