Searched refs:expected (Results 1 – 5 of 5) sorted by relevance
| /zcbor-latest/include/ |
| D | zcbor_decode.h | 95 bool zcbor_int32_expect(zcbor_state_t *state, int32_t expected); /* pint/nint */ 96 bool zcbor_int64_expect(zcbor_state_t *state, int64_t expected); /* pint/nint */ 97 bool zcbor_uint32_expect(zcbor_state_t *state, uint32_t expected); /* pint */ 98 bool zcbor_uint64_expect(zcbor_state_t *state, uint64_t expected); /* pint */ 99 bool zcbor_size_expect(zcbor_state_t *state, size_t expected); /* pint */ 100 bool zcbor_bstr_expect(zcbor_state_t *state, struct zcbor_string *expected); /* bstr */ 101 bool zcbor_tstr_expect(zcbor_state_t *state, struct zcbor_string *expected); /* tstr */ 102 bool zcbor_tag_expect(zcbor_state_t *state, uint32_t expected); /* CBOR tag */ 103 bool zcbor_bool_expect(zcbor_state_t *state, bool expected); /* boolean CBOR simple value */ 106 bool zcbor_float16_expect(zcbor_state_t *state, float expected); /* IEEE754 float16 */ [all …]
|
| /zcbor-latest/src/ |
| D | zcbor_decode.c | 316 bool zcbor_int32_expect(zcbor_state_t *state, int32_t expected) in zcbor_int32_expect() argument 319 return zcbor_int64_expect(state, expected); in zcbor_int32_expect() 323 bool zcbor_int32_pexpect(zcbor_state_t *state, int32_t *expected) in zcbor_int32_pexpect() argument 326 return zcbor_int32_expect(state, *expected); in zcbor_int32_pexpect() 330 bool zcbor_int64_expect(zcbor_state_t *state, int64_t expected) in zcbor_int64_expect() argument 339 if (actual != expected) { in zcbor_int64_expect() 340 zcbor_log("%" PRIi64 " != %" PRIi64 "\r\n", actual, expected); in zcbor_int64_expect() 347 bool zcbor_int64_pexpect(zcbor_state_t *state, int64_t *expected) in zcbor_int64_pexpect() argument 350 return zcbor_int64_expect(state, *expected); in zcbor_int64_pexpect() 370 bool zcbor_uint32_expect(zcbor_state_t *state, uint32_t expected) in zcbor_uint32_expect() argument [all …]
|
| /zcbor-latest/tests/decode/test5_corner_cases/src/ |
| D | main.c | 14 static void zassert_zcbor_string(struct zcbor_string *str, uint8_t *expected, size_t len) in zassert_zcbor_string() argument 16 zassert_equal(len, str->len, "exp: %s\n", expected); in zassert_zcbor_string() 17 zassert_mem_equal(expected, str->value, len, "exp: %s\n", expected); in zassert_zcbor_string() 1491 float expected; in ZTEST() local 1538 expected = 0.00026917458f; /* 0x398d2000 */ in ZTEST() 1539 zassert_equal((double)expected, result.floats[0], NULL); in ZTEST()
|
| /zcbor-latest/ |
| D | ARCHITECTURE.md | 160 …types" and they are typically the "outermost" types, or the types it is expected that the data wil… 191 - The current position in a list or map, and the maximum expected number of elements.
|
| /zcbor-latest/tests/unit/test1_unit_tests/src/ |
| D | main.c | 879 bool zcbor_simple_expect(zcbor_state_t *state, uint8_t expected); 880 bool zcbor_simple_pexpect(zcbor_state_t *state, uint8_t *expected);
|