JsonMemoryMarshal

JsonMemoryMarshal class

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

class JsonMemoryMarshal

Methods

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

See Also