Lines Matching refs:state_array
139 void zcbor_new_state(zcbor_state_t *state_array, size_t n_states, in zcbor_new_state() argument
143 state_array[0].payload = payload; in zcbor_new_state()
144 state_array[0].payload_end = payload + payload_len; in zcbor_new_state()
145 state_array[0].elem_count = elem_count; in zcbor_new_state()
146 state_array[0].payload_moved = false; in zcbor_new_state()
147 state_array[0].decode_state.indefinite_length_array = false; in zcbor_new_state()
149 state_array[0].decode_state.map_search_elem_state = flags; in zcbor_new_state()
150 state_array[0].decode_state.map_elem_count = 0; in zcbor_new_state()
152 state_array[0].decode_state.map_elems_processed = 0; in zcbor_new_state()
156 state_array[0].constant_state = NULL; in zcbor_new_state()
163 state_array[0].constant_state = (struct zcbor_state_constant *)&state_array[n_states - 1]; in zcbor_new_state()
164 state_array[0].constant_state->backup_list = NULL; in zcbor_new_state()
165 state_array[0].constant_state->num_backups = n_states - 2; in zcbor_new_state()
166 state_array[0].constant_state->current_backup = 0; in zcbor_new_state()
167 state_array[0].constant_state->error = ZCBOR_SUCCESS; in zcbor_new_state()
169 state_array[0].constant_state->stop_on_error = false; in zcbor_new_state()
171 state_array[0].constant_state->manually_process_elem = false; in zcbor_new_state()
173 state_array[0].constant_state->map_search_elem_state_end = flags + flags_bytes; in zcbor_new_state()
176 state_array[0].constant_state->backup_list = &state_array[1]; in zcbor_new_state()