---
title: "System::Buffers::ReadOnlySequenceSegment::set_Memory method"
url: "https://reference.aspose.com/pdf/cpp/system.buffers/readonlysequencesegment/set_memory/"
product: "Aspose.PDF for C++ API Reference"
description: "System::Buffers::ReadOnlySequenceSegment::set_Memory method. Sets the contiguous memory held by this segment in C++."
---

## ReadOnlySequenceSegment::set_Memory method


Sets the contiguous memory held by this segment.

```cpp
void System::Buffers::ReadOnlySequenceSegment<T>::set_Memory(const ReadOnlyMemory<T> &value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | const ReadOnlyMemory\<T\>\& | The memory to assign to the segment. |

## See Also

* Class [ReadOnlyMemory](../../../system/readonlymemory/)
* Class [ReadOnlySequenceSegment](../)
* Namespace [System::Buffers](../../)
* Library [Aspose.PDF for C++](../../../)
