Home
last modified time | relevance | path

Searched refs:pb_decode_varint32 (Results 1 – 7 of 7) sorted by relevance

/nanopb-3.4.0/
Dpb_decode.h152 #define pb_decode_varint pb_decode_varint32
157 bool pb_decode_varint32(pb_istream_t *stream, uint32_t *dest);
Dpb_decode.c236 bool checkreturn pb_decode_varint32(pb_istream_t *stream, uint32_t *dest) in pb_decode_varint32() function
279 if (!pb_decode_varint32(stream, &length)) in pb_skip_string()
364 if (!pb_decode_varint32(stream, &size)) in pb_make_string_substream()
1348 if (!pb_decode_varint32(stream, &value)) in pb_decode_bool()
1502 if (!pb_decode_varint32(stream, &size)) in pb_dec_bytes()
1542 if (!pb_decode_varint32(stream, &size)) in pb_dec_string()
1642 if (!pb_decode_varint32(stream, &size)) in pb_dec_fixed_length_bytes()
DCHANGELOG.txt109 Make pb_decode_varint32() reject overlong varint encodings.
295 Make pb_decode_varint32 overflow checks exact (#258)
315 Make pb_decode_varint32 public API (#231)
/nanopb-3.4.0/spm_headers/nanopb/
Dpb_decode.h152 #define pb_decode_varint pb_decode_varint32
157 bool pb_decode_varint32(pb_istream_t *stream, uint32_t *dest);
/nanopb-3.4.0/tests/decode_unittests/
Ddecode_unittests.c99 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()
101 TEST((s = S("\xAC\x02"), pb_decode_varint32(&s, &u) && u == 300)); in main()
102 TEST((s = S("\xFF\xFF\xFF\xFF\x0F"), pb_decode_varint32(&s, &u) && u == UINT32_MAX)); in main()
103 TEST((s = S("\xFF\xFF\xFF\xFF\x8F\x00"), pb_decode_varint32(&s, &u) && u == UINT32_MAX)); in main()
104 TEST((s = S("\xFF\xFF\xFF\xFF\x10"), !pb_decode_varint32(&s, &u))); in main()
105 TEST((s = S("\xFF\xFF\xFF\xFF\x40"), !pb_decode_varint32(&s, &u))); in main()
106 TEST((s = S("\xFF\xFF\xFF\xFF\xFF\x01"), !pb_decode_varint32(&s, &u))); in main()
107 TEST((s = S("\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x80\x00"), !pb_decode_varint32(&s, &u))); in main()
/nanopb-3.4.0/tests/regression/issue_249/
Dtest.c25 if (!pb_decode_varint32(stream, &i)) in read_array()
/nanopb-3.4.0/docs/
Dreference.md887 #### pb_decode_varint32 subsubsection
891 bool pb_decode_varint32(pb_istream_t *stream, uint32_t *dest);