Home
last modified time | relevance | path

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

/external/nanopb-c/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()
/external/nanopb-c/
Dpb_decode.h142 #define pb_decode_varint pb_decode_varint32
147 bool pb_decode_varint32(pb_istream_t *stream, uint32_t *dest);
Dpb_decode.c244 bool checkreturn pb_decode_varint32(pb_istream_t *stream, uint32_t *dest) in pb_decode_varint32() function
287 if (!pb_decode_varint32(stream, &length)) in pb_skip_string()
370 if (!pb_decode_varint32(stream, &size)) in pb_make_string_substream()
1397 if (!pb_decode_varint32(stream, &size)) in pb_dec_bytes()
1433 if (!pb_decode_varint32(stream, &size)) in pb_dec_string()
1491 if (!pb_decode_varint32(stream, &size)) in pb_dec_fixed_length_bytes()
DCHANGELOG.txt20 Make pb_decode_varint32 overflow checks exact (#258)
40 Make pb_decode_varint32 public API (#231)
/external/grpc-grpc/third_party/nanopb/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\xFF\x01"), !pb_decode_varint32(&s, &u))); in main()
/external/grpc-grpc/third_party/nanopb/
Dpb_decode.c27 static bool checkreturn pb_decode_varint32(pb_istream_t *stream, uint32_t *dest);
172 static bool checkreturn pb_decode_varint32(pb_istream_t *stream, uint32_t *dest) in pb_decode_varint32() function
244 if (!pb_decode_varint32(stream, &length)) in pb_skip_string()
257 if (!pb_decode_varint32(stream, &temp)) in pb_decode_tag()
324 if (!pb_decode_varint32(stream, &size)) in pb_make_string_substream()
1254 if (!pb_decode_varint32(stream, &size)) in pb_dec_bytes()
1296 if (!pb_decode_varint32(stream, &size)) in pb_dec_string()
/external/nanopb-c/tests/regression/issue_249/
Dtest.c25 if (!pb_decode_varint32(stream, &i)) in read_array()