System::Text::Json::JsonMemoryMarshal::Read method

JsonMemoryMarshal::Read(const ReadOnlySpan<uint8_t>&) method

Reads a value of type T from the beginning of the specified byte span.

template<typename T> static T System::Text::Json::JsonMemoryMarshal::Read(const ReadOnlySpan<uint8_t> &source)
ParameterDescription
TThe type of the value to read.
ParameterTypeDescription
sourceconst ReadOnlySpan<uint8_t>&The byte span to read from.

ReturnValue

The value read from the span.

See Also

JsonMemoryMarshal::Read(const Span<uint8_t>&) method

Reads a value of type T from the beginning of the specified byte span.

template<typename T> static T System::Text::Json::JsonMemoryMarshal::Read(const Span<uint8_t> &source)
ParameterDescription
TThe type of the value to read.
ParameterTypeDescription
sourceconst Span<uint8_t>&The byte span to read from.

ReturnValue

The value read from the span.

See Also