|
CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
|
Represents a mutable memory segment backed by an array. More...
#include <memory.h>
Inherits System::Details::MemoryCore< T >.
Public Member Functions | |
| Span< T > | get_Span () const |
| Gets a span that represents the current memory. More... | |
| void | CopyTo (const Memory &destination) |
| Copies the contents of this memory to the destination memory. More... | |
| bool | TryCopyTo (const Memory &destination) |
| Attempts to copy the contents of this memory to the destination memory. More... | |
| Memory | Slice (int32_t start, int32_t length) const |
| Creates a slice of the current memory. More... | |
| operator ReadOnlyMemory< T > () const | |
| Implicitly converts Memory to ReadOnlyMemory. More... | |
| template<typename T1 = T> | |
| std::enable_if< std::is_same< T1, char16_t >::value, String >::type | ToString () const |
| Converts the character memory to a string representation. More... | |
| template<typename T1 = T> | |
| std::enable_if<!std::is_same< T1, char16_t >::value, String >::type | ToString () const |
| Converts the ordinary memory to a string representation. More... | |
Static Public Member Functions | |
| static Memory | get_Empty () |
| Gets an empty Memory instance. More... | |
| static Memory | to_Memory (const ArrayPtr< T > &array) |
| Creates a Memory instance from the specified array. More... | |
Represents a mutable memory segment backed by an array.
Exposes a span over the array region and supports slicing and copying.
|
inline |
Copies the contents of this memory to the destination memory.
| destination | The destination memory segment. |
|
inlinestatic |
|
inline |
Gets a span that represents the current memory.
|
inline |
Implicitly converts Memory to ReadOnlyMemory.
|
inline |
Creates a slice of the current memory.
| start | The starting index of the slice. |
| length | The number of elements in the slice. |
|
inlinestatic |
|
inline |
Converts the character memory to a string representation.
|
inline |
Converts the ordinary memory to a string representation.
|
inline |
Attempts to copy the contents of this memory to the destination memory.
| destination | The destination memory segment. |