System::Runtime::InteropServices::MemoryMarshal::Cast method
MemoryMarshal::Cast method
Casts a Span of one primitive type TFrom to another primitive type TTo.
template<typename TFrom,typename TTo> static Span<TTo> System::Runtime::InteropServices::MemoryMarshal::Cast(const Span<TFrom> &span)
| Parameter | Description |
|---|---|
| TFrom | The source type of the span. |
| TTo | The target type of the span. |
| Parameter | Type | Description |
|---|---|---|
| span | const Span<TFrom>& | The span to cast. |
ReturnValue
A span of the target type.
See Also
- Class Span
- Class MemoryMarshal
- Namespace System::Runtime::InteropServices
- Library Aspose.PDF for C++