 |
CppSerdes
1.0
A serialization/deserialization library designed with embedded systems in mind
|
Go to the documentation of this file. 1 #ifndef _SERDES_ERRORS_H_
8 #define _SERDES_ERRORS_H_
64 return "EXCEEDED_SERIAL_SIZE";
66 return "ARRAY_SIZE_OVER_MAX";
68 return "INVALID_FIELD";
70 return "NO_LOAD_TO_RVALUE";
72 return "DELIMITER_NOT_FOUND";
74 return "FORMATTER_NOT_SET";
76 return "START_BYTE_PAST_CURRENT";
78 return "NUM_BYTES_OVER_MAX";
108 #endif // _SERDES_ERRORS_H_
status_e
error status of serialization/deserialization process
Definition: serdes_errors.h:16
@ NO_LOAD_TO_RVALUE
tried to loading data from a serial buffer into a temporary rvalue (causes the serdes process to abor...
@ LOADING
(deserializing) loading from serial data into variables
@ START_BYTE_PAST_CURRENT
a byte_iterator was passed a starting byte that was past the current byte position,...
@ NO_ERROR
no serialization/deserialization errors occurred
const char * status2str(status_e err_status) noexcept
converts an error status enum to a c style string
Definition: serdes_errors.h:57
@ EXCEEDED_SERIAL_SIZE
during serialization/deserialization the "serial data" boundary was reached (causes the serdes proces...
@ UNSPECIFIED
not yet configured for storing/loading
@ FORMATTER_NOT_SET
a pure_virtual_formatter (a.k.a "serdes::formatter(nullptr)") was used but not overriden (causes the ...
mode_e
the serdes mode of operation
Definition: serdes_errors.h:95
@ STORING
(serializing) storing variables into serial data
size_t bits
number of bits processed
Definition: serdes_errors.h:91
status returned after any serialization/deserialization process
Definition: serdes_errors.h:85
@ ARRAY_SIZE_OVER_MAX
the "serdes::array" object's size exceeded the maximum size of the array when evaluated (causes the s...
@ DELIMITER_NOT_FOUND
the specified delimiter in a delimited_array object was not found before the end of the array (causes...
@ NUM_BYTES_OVER_MAX
a byte_iterator was passed a starting + number of bytes that was past the end of the buffer
CppSerdes library namespace.
Definition: bitcpy_common.h:68
@ INVALID_FIELD
a fields validation check failed (causes the serdes process to abort)
status_e status
status of the serdes (load or store) action
Definition: serdes_errors.h:88