Home
last modified time | relevance | path

Searched refs:result_len (Results 1 – 7 of 7) sorted by relevance

/zcbor-3.6.0/src/
Dzcbor_encode.c59 const void *const result, size_t result_len) in value_encode_len() argument
63 if ((state->payload + 1 + result_len) > state->payload_end) { in value_encode_len()
68 get_additional(result_len, u8_result[0]))) { in value_encode_len()
76 memcpy(state->payload_mut, u8_result, result_len); in value_encode_len()
77 state->payload_mut += result_len; in value_encode_len()
79 for (; result_len > 0; result_len--) { in value_encode_len()
80 *(state->payload_mut++) = u8_result[result_len - 1]; in value_encode_len()
94 size_t result_len = zcbor_header_len_ptr(input, max_result_len) - 1; in value_encode() local
98 result = (uint8_t *)input + max_result_len - (result_len ? result_len : 1); in value_encode()
101 return value_encode_len(state, major_type, result, result_len); in value_encode()
[all …]
Dzcbor_common.c224 size_t num_fragments, uint8_t *result, size_t *result_len) in zcbor_splice_string_fragments() argument
233 if ((total_len > *result_len) in zcbor_splice_string_fragments()
234 || (fragments[i].fragment.len > (*result_len - total_len))) { in zcbor_splice_string_fragments()
242 *result_len = total_len; in zcbor_splice_string_fragments()
Dzcbor_decode.c125 void *const result, size_t result_len) in value_extract() argument
128 zcbor_assert_state(result_len != 0, "0-length result not supported.\r\n"); in value_extract()
129 zcbor_assert_state(result_len <= 8, "result sizes above 8 bytes not supported.\r\n"); in value_extract()
137 uint8_t *result_offs = (uint8_t *)result + ZCBOR_ECPY_OFFS(result_len, MAX(1, len)); in value_extract()
140 ZCBOR_ERR_IF(len > result_len, ZCBOR_ERR_INT_SIZE); in value_extract()
144 memset(result, 0, result_len); in value_extract()
152 ZCBOR_ERR_IF((zcbor_header_len_ptr(result, result_len) != (len + 1)), in value_extract()
1522 size_t result_len) argument
1531 (uint8_t *)result + i*result_len)) {
/zcbor-3.6.0/include/
Dzcbor_encode.h183 zcbor_state_t *state, const void *input, size_t result_len);
Dzcbor_common.h431 size_t num_fragments, uint8_t *result, size_t *result_len);
Dzcbor_decode.h333 size_t result_len);
/zcbor-3.6.0/zcbor/
Dzcbor.py2444 def result_len(self): member in CodeGenerator
2481 self.result_len()))