Home
last modified time | relevance | path

Searched refs:pb_dec_bytes (Results 1 – 2 of 2) sorted by relevance

/nanopb-3.4.0/tests/decode_unittests/
Ddecode_unittests.c272 TEST((s = S("\x00"), pb_dec_bytes(&s, &f) && d.size == 0)) in main()
273 TEST((s = S("\x01\xFF"), pb_dec_bytes(&s, &f) && d.size == 1 && d.bytes[0] == 0xFF)) in main()
274 TEST((s = S("\x05xxxxx"), pb_dec_bytes(&s, &f) && d.size == 5)) in main()
275 TEST((s = S("\x05xxxx"), !pb_dec_bytes(&s, &f))) in main()
284 TEST((s = S("\x10xxxxxxxxxx"), !pb_dec_bytes(&s, &f))) in main()
/nanopb-3.4.0/
Dpb_decode.c38 static bool checkreturn pb_dec_bytes(pb_istream_t *stream, const pb_field_iter_t *field);
440 return pb_dec_bytes(stream, field); in decode_basic_field()
1496 static bool checkreturn pb_dec_bytes(pb_istream_t *stream, const pb_field_iter_t *field) in pb_dec_bytes() function