Home
last modified time | relevance | path

Searched refs:zcbor_uint_decode (Results 1 – 5 of 5) sorted by relevance

/zcbor-latest/samples/pet/src/
Dpet_decode.c43 …&& ((((zcbor_uint_decode(state, &(*result).species_choice, sizeof((*result).species_choice)))) && … in decode_Pet()
/zcbor-latest/tests/unit/test1_unit_tests/src/
Dmain.c836 zassert_true(zcbor_uint_decode(state_d, &uint8, sizeof(uint8)), NULL); in ZTEST()
837 zassert_false(zcbor_uint_decode(state_d, &uint16, sizeof(uint8)), NULL); in ZTEST()
838 zassert_true(zcbor_uint_decode(state_d, &uint16, sizeof(uint16)), NULL); in ZTEST()
839 zassert_false(zcbor_uint_decode(state_d, &uint32, sizeof(uint8)), NULL); in ZTEST()
840 zassert_false(zcbor_uint_decode(state_d, &uint32, sizeof(uint16)), NULL); in ZTEST()
841 zassert_true(zcbor_uint_decode(state_d, &uint32, sizeof(uint32)), NULL); in ZTEST()
842 zassert_false(zcbor_uint_decode(state_d, &uint64, sizeof(uint8)), NULL); in ZTEST()
843 zassert_false(zcbor_uint_decode(state_d, &uint64, sizeof(uint16)), NULL); in ZTEST()
844 zassert_false(zcbor_uint_decode(state_d, &uint64, sizeof(uint32)), NULL); in ZTEST()
845 zassert_true(zcbor_uint_decode(state_d, &uint64, sizeof(uint64)), NULL); in ZTEST()
[all …]
/zcbor-latest/src/
Dzcbor_decode.c256 bool zcbor_uint_decode(zcbor_state_t *state, void *result, size_t result_size) in zcbor_uint_decode() function
272 return zcbor_uint_decode(state, result, sizeof(*result)); in zcbor_uint32_decode()
357 return zcbor_uint_decode(state, result, sizeof(*result)); in zcbor_uint64_decode()
365 return zcbor_uint_decode(state, result, sizeof(*result)); in zcbor_size_decode()
/zcbor-latest/include/
Dzcbor_decode.h72 bool zcbor_uint_decode(zcbor_state_t *state, void *result, size_t result_size); /* pint */
/zcbor-latest/
DRELEASE_NOTES.md86 * zcbor.py: Use zcbor_uint_decode() when decoding only positive enums