/zcbor-3.5.0-3.4.0/src/ |
D | zcbor_decode.c | 46 static bool initial_checks(zcbor_state_t *state) in initial_checks() 54 static bool type_check(zcbor_state_t *state, zcbor_major_type_t exp_major_type) in type_check() 82 static void err_restore(zcbor_state_t *state, int err) in err_restore() 121 static bool value_extract(zcbor_state_t *state, in value_extract() 168 bool zcbor_int_decode(zcbor_state_t *state, void *result_int, size_t int_size) 205 bool zcbor_int32_decode(zcbor_state_t *state, int32_t *result) 211 bool zcbor_int64_decode(zcbor_state_t *state, int64_t *result) 217 bool zcbor_uint_decode(zcbor_state_t *state, void *result_uint, size_t uint_size) 229 bool zcbor_uint32_decode(zcbor_state_t *state, uint32_t *result) 235 bool zcbor_int32_expect_union(zcbor_state_t *state, int32_t result) [all …]
|
D | zcbor_encode.c | 42 static bool encode_header_byte(zcbor_state_t *state, in encode_header_byte() 60 static bool value_encode_len(zcbor_state_t *state, zcbor_major_type_t major_type, in value_encode_len() 136 static bool value_encode(zcbor_state_t *state, zcbor_major_type_t major_type, 148 bool zcbor_int_encode(zcbor_state_t *state, const void *input_int, size_t int_size) 184 bool zcbor_uint_encode(zcbor_state_t *state, const void *input_uint, size_t uint_size) 194 bool zcbor_int32_encode(zcbor_state_t *state, const int32_t *input) 200 bool zcbor_int64_encode(zcbor_state_t *state, const int64_t *input) 206 bool zcbor_uint32_encode(zcbor_state_t *state, const uint32_t *input) 212 bool zcbor_uint64_encode(zcbor_state_t *state, const uint64_t *input) 218 bool zcbor_int32_put(zcbor_state_t *state, int32_t input) [all …]
|
D | zcbor_common.c | 19 bool zcbor_new_backup(zcbor_state_t *state, size_t new_elem_count) in zcbor_new_backup() 45 bool zcbor_process_backup(zcbor_state_t *state, uint32_t flags, in zcbor_process_backup() 90 static void update_backups(zcbor_state_t *state, uint8_t const *new_payload_end) in update_backups() 101 bool zcbor_union_start_code(zcbor_state_t *state) in zcbor_union_start_code() 110 bool zcbor_union_elem_code(zcbor_state_t *state) in zcbor_union_elem_code() 118 bool zcbor_union_end_code(zcbor_state_t *state) in zcbor_union_end_code() 154 void zcbor_update_state(zcbor_state_t *state, in zcbor_update_state() 251 bool zcbor_array_at_end(zcbor_state_t *state) in zcbor_array_at_end()
|
/zcbor-3.5.0-3.4.0/include/ |
D | zcbor_decode.h | 83 static inline bool zcbor_bstr_expect_ptr(zcbor_state_t *state, char const *ptr, size_t len) in zcbor_bstr_expect_ptr() 89 static inline bool zcbor_tstr_expect_ptr(zcbor_state_t *state, char const *ptr, size_t len) in zcbor_tstr_expect_ptr() 103 #define zcbor_bstr_expect_lit(state, string) \ argument 105 #define zcbor_tstr_expect_lit(state, string) \ argument 114 #define zcbor_bstr_expect_term(state, string) \ argument 116 #define zcbor_tstr_expect_term(state, string) \ argument 125 #define zcbor_bstr_expect_arr(state, string) \ argument 127 #define zcbor_tstr_expect_arr(state, string) \ argument
|
D | zcbor_encode.h | 65 static inline bool zcbor_bstr_encode_ptr(zcbor_state_t *state, const char *ptr, size_t len) in zcbor_bstr_encode_ptr() 71 static inline bool zcbor_tstr_encode_ptr(zcbor_state_t *state, const char *ptr, size_t len) in zcbor_tstr_encode_ptr() 84 #define zcbor_bstr_put_lit(state, string) \ argument 86 #define zcbor_tstr_put_lit(state, string) \ argument 95 #define zcbor_bstr_put_term(state, string) \ argument 97 #define zcbor_tstr_put_term(state, string) \ argument 106 #define zcbor_bstr_put_arr(state, string) \ argument 108 #define zcbor_tstr_put_arr(state, string) \ argument
|
D | zcbor_common.h | 289 static inline bool zcbor_check_error(const zcbor_state_t *state) in zcbor_check_error() 297 static inline int zcbor_pop_error(zcbor_state_t *state) in zcbor_pop_error() 309 static inline int zcbor_peek_error(const zcbor_state_t *state) in zcbor_peek_error() 319 static inline void zcbor_error(zcbor_state_t *state, int err) in zcbor_error() 332 static inline bool zcbor_payload_at_end(const zcbor_state_t *state) in zcbor_payload_at_end()
|
/zcbor-3.5.0-3.4.0/samples/pet/src/ |
D | pet_decode.c | 26 zcbor_state_t *state, struct Pet *result) in decode_Pet()
|
D | pet_encode.c | 26 zcbor_state_t *state, const struct Pet *input) in encode_Pet()
|
/zcbor-3.5.0-3.4.0/tests/decode/test5_corner_cases/src/ |
D | main.c | 819 static bool my_decode_EmptyMap(zcbor_state_t *state, void *unused) in my_decode_EmptyMap()
|