Searched refs:u (Results 1 – 4 of 4) sorted by relevance
/nanopb-2.7.6/tests/decode_unittests/ |
D | decode_unittests.c | 77 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-2.7.6/ |
D | pb_decode.c | 1356 } u; in pb_decode_fixed32() local 1358 if (!pb_read(stream, u.bytes, 4)) in pb_decode_fixed32() 1363 *(uint32_t*)dest = u.fixed32; in pb_decode_fixed32() 1365 *(uint32_t*)dest = ((uint32_t)u.bytes[0] << 0) | in pb_decode_fixed32() 1366 ((uint32_t)u.bytes[1] << 8) | in pb_decode_fixed32() 1367 ((uint32_t)u.bytes[2] << 16) | in pb_decode_fixed32() 1368 ((uint32_t)u.bytes[3] << 24); in pb_decode_fixed32() 1379 } u; in pb_decode_fixed64() local 1381 if (!pb_read(stream, u.bytes, 8)) in pb_decode_fixed64() 1386 *(uint64_t*)dest = u.fixed64; in pb_decode_fixed64() [all …]
|
/nanopb-2.7.6/tests/backwards_compatibility/ |
D | alltypes_legacy.h | 165 #define Limits_init_default {2147483647, -2147483647, 4294967295u, 0u, 9223372…
|
/nanopb-2.7.6/docs/ |
D | migration.md | 349 `[u]int_least8_t`. This must be added manually, example can be found
|