unsignedByte¶
An unsignedByte is an unsigned 8-bit integer.
The lexical form is the same as unsignedLong, but values range from 0 to 255 inclusive.
-
EXESS_MAX_UBYTE_LENGTH¶
3U
The maximum length of a canonical
unsignedBytestring.
-
ExessResult exess_read_ubyte(const char *str, uint8_t *out)¶
Read an
unsignedBytestring after any leading whitespace.- Parameters:
str – String to read.
out – Parsed value, or zero on error.
- Returns:
The
countof characters read, and astatus.
-
ExessResult exess_write_ubyte(uint8_t value, size_t buf_size, char *buf)¶
Write a canonical
unsignedBytestring.- Parameters:
value – Value to write.
buf_size – Size of
bufin bytes.buf – Output buffer, or null to only measure.
- Returns:
The
countof characters in the output, and astatus(ExessStatus.EXESS_SUCCESS, orExessStatus.EXESS_NO_SPACEif the buffer is too small).