Read()

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)

Template parameters

ParameterDescription
TThe type of the value to read.

Arguments

ParameterTypeDescription
sourceconst ReadOnlySpan<uint8_t>&The byte span to read from.

Return Value

The value read from the span.

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)

Template parameters

ParameterDescription
TThe type of the value to read.

Arguments

ParameterTypeDescription
sourceconst Span<uint8_t>&The byte span to read from.

Return Value

The value read from the span.

See Also