System::Text::Json::JsonMemoryMarshal class

JsonMemoryMarshal class

Byte-span marshalling helpers used by the JSON reader/writer implementation.

class JsonMemoryMarshal

Methods

MethodDescription
static Cast(const ReadOnlySpan<TFrom>&)Casts a read-only span of one primitive type TFrom to another primitive type TTo.
static Read(const ReadOnlySpan<uint8_t>&)Reads a value of type T from the beginning of the specified byte span.
static Read(const Span<uint8_t>&)Reads a value of type T from the beginning of the specified byte span.
static Write(const Span<uint8_t>&, T&)Writes a value of type T to the beginning of the specified byte span.

See Also