Home
last modified time | relevance | path

Searched refs:u (Results 1 – 4 of 4) sorted by relevance

/nanopb-3.4.0/tests/decode_unittests/
Ddecode_unittests.c77 uint64_t u; in main() local
81 TEST((s = S("\x00"), pb_decode_varint(&s, &u) && u == 0)); in main()
82 TEST((s = S("\x01"), pb_decode_varint(&s, &u) && u == 1)); in main()
83 TEST((s = S("\xAC\x02"), pb_decode_varint(&s, &u) && u == 300)); in main()
84 TEST((s = S("\xFF\xFF\xFF\xFF\x0F"), pb_decode_varint(&s, &u) && u == UINT32_MAX)); in main()
89 pb_decode_varint(&s, &u) && u == UINT64_MAX)); in main()
91 !pb_decode_varint(&s, &u))); in main()
96 uint32_t u; in main() local
99 TEST((s = S("\x00"), pb_decode_varint32(&s, &u) && u == 0)); in main()
100 TEST((s = S("\x01"), pb_decode_varint32(&s, &u) && u == 1)); in main()
[all …]
/nanopb-3.4.0/
Dpb_decode.c1374 } u; in pb_decode_fixed32() local
1376 if (!pb_read(stream, u.bytes, 4)) in pb_decode_fixed32()
1381 *(uint32_t*)dest = u.fixed32; in pb_decode_fixed32()
1383 *(uint32_t*)dest = ((uint32_t)u.bytes[0] << 0) | in pb_decode_fixed32()
1384 ((uint32_t)u.bytes[1] << 8) | in pb_decode_fixed32()
1385 ((uint32_t)u.bytes[2] << 16) | in pb_decode_fixed32()
1386 ((uint32_t)u.bytes[3] << 24); in pb_decode_fixed32()
1397 } u; in pb_decode_fixed64() local
1399 if (!pb_read(stream, u.bytes, 8)) in pb_decode_fixed64()
1404 *(uint64_t*)dest = u.fixed64; in pb_decode_fixed64()
[all …]
/nanopb-3.4.0/tests/backwards_compatibility/
Dalltypes_legacy.h165 #define Limits_init_default {2147483647, -2147483647, 4294967295u, 0u, 9223372…
/nanopb-3.4.0/docs/
Dmigration.md406 `[u]int_least8_t`. This must be added manually, example can be found