Memory
Contents
[
Hide
]Memory class
Represents a mutable memory segment backed by an array.
template<typename T>class Memory : public System::Details::MemoryCore<T>
Methods
| Method | Description |
|---|---|
| void CopyTo(const Memory&) | Copies the contents of this memory to the destination memory. |
| static Memory get_Empty() | Gets an empty Memory instance. |
| Span<T> get_Span() const | Gets a span that represents the current memory. |
| operator ReadOnlyMemory< T >() const | Implicitly converts Memory to ReadOnlyMemory. |
| Memory Slice(int32_t, int32_t) const | Creates a slice of the current memory. |
| static Memory to_Memory(const ArrayPtr<T>&) | Creates a Memory instance from the specified array. |
| std::enable_if<std::is_same<T1, char16_t>::value, String>::type ToString() const | Converts the character memory to a string representation. |
| std::enable_if<!std::is_same<T1, char16_t>::value, String>::type ToString() const | Converts the ordinary memory to a string representation. |
| bool TryCopyTo(const Memory&) | Attempts to copy the contents of this memory to the destination memory. |
Remarks
Exposes a span over the array region and supports slicing and copying.
See Also
- Namespace System
- Library Aspose.Slides