Canonical Form

Rewriting generic strings in canonical form.

ExessVariableResult exess_write_canonical(ExessDatatype datatype, const char *str, size_t buf_size, char *buf)

Rewrite a supported datatype in canonical form.

Parameters:
  • datatype – Datatype of value.

  • str – Input value string.

  • buf_size – Size of buf in bytes.

  • buf – Output buffer, or null to only measure.

Returns:

The read_count from str, write_count to buf (both in bytes), and a status. The status may be an error from reading or writing.