Home
last modified time | relevance | path

Searched refs:result (Results 1 – 18 of 18) sorted by relevance

/zcbor-3.5.0-3.4.0/src/
Dzcbor_decode.c122 void *const result, size_t result_len) in value_extract() argument
126 zcbor_assert_state(result != NULL, NULL); in value_extract()
131 uint8_t *u8_result = (uint8_t *)result; in value_extract()
137 memset(result, 0, result_len); in value_extract()
205 bool zcbor_int32_decode(zcbor_state_t *state, int32_t *result) argument
207 return zcbor_int_decode(state, result, sizeof(*result));
211 bool zcbor_int64_decode(zcbor_state_t *state, int64_t *result) argument
213 return zcbor_int_decode(state, result, sizeof(*result));
229 bool zcbor_uint32_decode(zcbor_state_t *state, uint32_t *result) argument
231 return zcbor_uint_decode(state, result, sizeof(*result));
[all …]
Dzcbor_encode.c55 static size_t get_encoded_len(const void *const result, size_t result_len);
61 const void *const result, size_t result_len) in value_encode_len() argument
63 uint8_t *u8_result = (uint8_t *)result; in value_encode_len()
64 size_t encoded_len = get_encoded_len(result, result_len); in value_encode_len()
125 static size_t get_encoded_len(const void *const result, size_t result_len) argument
127 const uint8_t *u8_result = (const uint8_t *)result;
142 const void *const result = get_result(input, max_result_len, result_len); local
144 return value_encode_len(state, major_type, result, result_len);
296 bool zcbor_bstr_end_encode(zcbor_state_t *state, struct zcbor_string *result) argument
301 if (result == NULL) {
[all …]
Dzcbor_common.c203 size_t num_fragments, uint8_t *result, size_t *result_len) in zcbor_splice_string_fragments() argument
216 memcpy(&result[total_len], in zcbor_splice_string_fragments()
/zcbor-3.5.0-3.4.0/include/
Dzcbor_decode.h38 bool zcbor_int32_decode(zcbor_state_t *state, int32_t *result);
39 bool zcbor_int64_decode(zcbor_state_t *state, int64_t *result);
40 bool zcbor_uint32_decode(zcbor_state_t *state, uint32_t *result);
41 bool zcbor_uint64_decode(zcbor_state_t *state, uint64_t *result);
42 bool zcbor_size_decode(zcbor_state_t *state, size_t *result);
56 bool zcbor_int32_expect(zcbor_state_t *state, int32_t result);
57 bool zcbor_int64_expect(zcbor_state_t *state, int64_t result);
58 bool zcbor_uint32_expect(zcbor_state_t *state, uint32_t result);
59 bool zcbor_uint64_expect(zcbor_state_t *state, uint64_t result);
60 bool zcbor_size_expect(zcbor_state_t *state, size_t result);
[all …]
Dzcbor_encode.h158 bool zcbor_bstr_end_encode(zcbor_state_t *state, struct zcbor_string *result);
Dzcbor_common.h388 size_t num_fragments, uint8_t *result, size_t *result_len);
/zcbor-3.5.0-3.4.0/tests/fuzz/
Dfuzz_manifest12.c7 struct SUIT_Envelope result; in fuzz_one_input() local
12 &result, in fuzz_one_input()
18 for (int i = 0; i < result._SUIT_Envelope_suit_integrated_dependency_key_count; i++) { in fuzz_one_input()
20result._SUIT_Envelope_suit_integrated_dependency_key[i]._SUIT_Envelope_suit_integrated_dependency_… in fuzz_one_input()
21result._SUIT_Envelope_suit_integrated_dependency_key[i]._SUIT_Envelope_suit_integrated_dependency_… in fuzz_one_input()
28 if (result._SUIT_Envelope_suit_manifest_cbor in fuzz_one_input()
32 result._SUIT_Envelope_suit_manifest_cbor in fuzz_one_input()
36 result._SUIT_Envelope_suit_manifest_cbor in fuzz_one_input()
46 if (result._SUIT_Envelope_suit_manifest_cbor in fuzz_one_input()
50 result._SUIT_Envelope_suit_manifest_cbor in fuzz_one_input()
[all …]
Dfuzz_pet.c7 struct Pet result; in fuzz_one_input() local
9 &result, in fuzz_one_input()
/zcbor-3.5.0-3.4.0/samples/pet/src/
Dpet_decode.c22 static bool decode_Pet(zcbor_state_t *state, struct Pet *result);
26 zcbor_state_t *state, struct Pet *result) in decode_Pet() argument
30 …ate) && ((zcbor_multi_decode(1, 3, &(*result).names_count, (zcbor_decoder_t *)zcbor_tstr_decode, s… in decode_Pet()
31 && ((zcbor_bstr_decode(state, (&(*result).birthday))) in decode_Pet()
32 && ((((((*result).birthday.len >= 8) in decode_Pet()
33 …&& ((*result).birthday.len <= 8)) || (zcbor_error(state, ZCBOR_ERR_WRONG_RANGE), false))) || (zcbo… in decode_Pet()
34 …&& ((((zcbor_int_decode(state, &(*result).species_choice, sizeof((*result).species_choice)))) && (… in decode_Pet()
35 || (((*result).species_choice == _Pet_species_dog) && ((1))) in decode_Pet()
36 …|| (((*result).species_choice == _Pet_species_other) && ((1)))) || (zcbor_error(state, ZCBOR_ERR_W… in decode_Pet()
48 struct Pet *result, in cbor_decode_Pet() argument
[all …]
/zcbor-3.5.0-3.4.0/tests/decode/test5_corner_cases/src/
Dmain.c220 struct TaggedUnion_ result; in ZTEST() local
223 sizeof(payload_tagged_union1), &result, &decode_len), "%d\r\n"); in ZTEST()
226 zassert_equal(_TaggedUnion_bool, result.TaggedUnion_choice, NULL); in ZTEST()
227 zassert_true(result._bool, NULL); in ZTEST()
230 sizeof(payload_tagged_union2), &result, &decode_len), NULL); in ZTEST()
232 zassert_equal(_TaggedUnion_uint, result.TaggedUnion_choice, NULL); in ZTEST()
233 zassert_equal(0x10, result.uint, NULL); in ZTEST()
236 sizeof(payload_tagged_union3_inv), &result, &decode_len), NULL); in ZTEST()
478 struct Simples result; in ZTEST() local
481 …zassert_equal(ZCBOR_SUCCESS, cbor_decode_Simple2(payload_simple1, sizeof(payload_simple1), &result in ZTEST()
[all …]
/zcbor-3.5.0-3.4.0/samples/pet/include/
Dpet_decode.h31 struct Pet *result,
/zcbor-3.5.0-3.4.0/tests/scripts/
Dtest_repo_files.py47 result = style.check_files([str(f) for f in files])
48 result.print_statistics()
49 self.assertEqual(result.total_errors, 0,
/zcbor-3.5.0-3.4.0/tests/cases/
Dcorner_cases.cddl195 "r" : (result:result_code),
/zcbor-3.5.0-3.4.0/
DARCHITECTURE.md175 CodeRenderer is a standalone class that takes the result of the CodeGenerator class and constructs …
199 In most cases, a failure in one function will result in a failure of the whole operation.
213 …enerated and not) have the same API structure: `bool <name>(zcbor_state_t *state, <type> *result)`.
DRELEASE_NOTES.md154 … the optimization does a single int_decode() and identifies the correct union member by the result.
248 * zcbor.py: Avoid creating functions with "None" result type.
DLICENSE160 result of this License or out of the use or inability to use the
/zcbor-3.5.0-3.4.0/zcbor/
Dzcbor.py308 result = defaultdict(lambda: "")
314 result[key] += slashes
315 result[key] += value
316 result[key] = result[key].lstrip(slashes) # strip from front
318 if key in result:
320 result[key] = value
321 return dict(result)
/zcbor-3.5.0-3.4.0/tests/encode/test3_corner_cases/src/
Dmain.c1356 input.result = 1; in ZTEST()