Byte-span marshalling helpers used by the JSON reader/writer implementation.
Definition: json_memory_marshal.h:18
static void Write(const Span< uint8_t > &destination, T &value)
Writes a value of type T to the beginning of the specified byte span.
Definition: json_memory_marshal.h:60
static ReadOnlySpan< TTo > Cast(const ReadOnlySpan< TFrom > &span)
Casts a read-only span of one primitive type TFrom to another primitive type TTo.
Definition: json_memory_marshal.h:26
static T Read(const Span< uint8_t > &source)
Reads a value of type T from the beginning of the specified byte span.
Definition: json_memory_marshal.h:48
static T Read(const ReadOnlySpan< uint8_t > &source)
Reads a value of type T from the beginning of the specified byte span.
Definition: json_memory_marshal.h:36