|
CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
|
Represents a read-only memory segment backed by an array. More...
#include <memory.h>
Inherits System::Details::MemoryCore< T >.
Public Member Functions | |
| ReadOnlySpan< T > | get_Span () const |
| Gets a read-only span that represents the current memory. More... | |
| ReadOnlyMemory | Slice (int32_t start, int32_t length) const |
| Creates a slice of the current readonly memory. More... | |
| template<typename T1 = T> | |
| std::enable_if< std::is_same< T1, char16_t >::value, String >::type | ToString () const |
| Converts the character read-only 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 read-only memory to a string representation. More... | |
Static Public Member Functions | |
| static ReadOnlyMemory | get_Empty () |
| Gets an empty ReadOnlyMemory instance. More... | |
| static ReadOnlyMemory | to_ReadOnlyMemory (const ArrayPtr< T > &array) |
| Creates a ReadOnlyMemory instance from the specified array. More... | |
Represents a read-only memory segment backed by an array.
Exposes a read-only span over the array region and supports slicing.
|
inlinestatic |
Gets an empty ReadOnlyMemory instance.
|
inline |
Gets a read-only span that represents the current memory.
|
inline |
Creates a slice of the current readonly memory.
| start | The starting index of the slice. |
| length | The number of elements in the slice. |
|
inlinestatic |
Creates a ReadOnlyMemory instance from the specified array.
| array | The source array. |
|
inline |
Converts the character read-only memory to a string representation.
|
inline |
Converts the ordinary read-only memory to a string representation.