System::Text::Json::JsonMemoryMarshal::Cast method
JsonMemoryMarshal::Cast method
Casts a read-only span of one primitive type TFrom to another primitive type TTo.
template<typename TFrom,typename TTo> static ReadOnlySpan<TTo> System::Text::Json::JsonMemoryMarshal::Cast(const ReadOnlySpan<TFrom> &span)
| Parameter | Description |
|---|---|
| TFrom | The source type of the span. |
| TTo | The target type of the span. |
| Parameter | Type | Description |
|---|---|---|
| span | const ReadOnlySpan<TFrom>& | The span to cast. |
ReturnValue
A read-only span of the target type.
See Also
- Class ReadOnlySpan
- Class JsonMemoryMarshal
- Namespace System::Text::Json
- Library Aspose.TeX for C++