StringStructSerializer

String struct serializer

Constructors

this
this(size_t fp_dec_to_display)

Constructor, sets the maximum number of decimal digits to show for floating point types.

Members

Functions

close
void close(Char[] output, cstring name)

Called at the end of struct serialization

closeStruct
void closeStruct(Char[] output, cstring name)

Called after a sub-struct is serialized.

closeStructArray
void closeStructArray(Char[] output, cstring name, T[] array)

Called after a struct array is serialized.

open
void open(Char[] output, cstring name)

Called at the start of struct serialization - outputs the name of the top-level object.

openStruct
void openStruct(Char[] output, cstring name)

Called before a sub-struct is serialized.

openStructArray
void openStructArray(Char[] output, cstring name, T[] array)

Called before a struct array is serialized.

serialize
void serialize(Char[] output, T item, cstring[] timestamp_fields, bool turn_ws_char_to_str)

Convenience method to serialize a struct.

serialize
void serialize(Char[] output, T item, cstring name)

Appends a named item to the output string.

serializeArray
void serializeArray(Char[] output, cstring name, T[] array)

Appends a named array to the output string

Parameters

Char

character type of output string

Meta