## Memory::Slice method


Creates a slice of the current memory.

```cpp
Memory System::Memory<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 [Memory](../) object representing the requested slice.

## See Also

* Class [Memory](../)
* Class [Memory](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
