Searched refs:pb_read (Results 1 – 13 of 13) sorted by relevance
/nanopb-3.4.0/tests/oneof_callback/ |
D | decode_oneof.c | 33 if (!pb_read(istream, buffer, strlen)) in SubMsg3_callback() 65 if (!pb_read(stream, buffer, strlen)) in print_string()
|
/nanopb-3.4.0/tests/decode_unittests/ |
D | decode_unittests.c | 32 if (!pb_read(stream, &byte, 1)) in callback_check() 52 TEST(pb_read(&stream, buffer2, 6)) in main() 55 TEST(pb_read(&stream, buffer2 + 6, stream.bytes_left)) in main() 58 TEST(!pb_read(&stream, buffer2, 1)) in main() 66 TEST(pb_read(&stream, buffer, 5)) in main() 68 TEST(!pb_read(&stream, buffer, 50)) in main() 70 TEST(!pb_read(&stream, buffer, 5)) in main() 72 TEST(pb_read(&stream, buffer, 15)) in main()
|
/nanopb-3.4.0/ |
D | pb_decode.c | 81 bool checkreturn pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count) in pb_read() function 93 if (!pb_read(stream, tmp, 16)) in pb_read() 99 return pb_read(stream, tmp, count); in pb_read() 270 if (!pb_read(stream, &byte, 1)) in pb_skip_varint() 287 return pb_read(stream, NULL, (size_t)length); in pb_skip_string() 312 case PB_WT_64BIT: return pb_read(stream, NULL, 8); in pb_skip_field() 314 case PB_WT_32BIT: return pb_read(stream, NULL, 4); in pb_skip_field() 335 if (!pb_read(stream, buf, 1)) in read_raw_value() 342 return pb_read(stream, buf, 8); in read_raw_value() 346 return pb_read(stream, buf, 4); in read_raw_value() [all …]
|
D | pb_decode.h | 133 bool pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count);
|
D | CHANGELOG.txt | 12 Safeguard substraction in pb_read() with custom streams (#697)
|
/nanopb-3.4.0/tests/msgid/ |
D | decode_msgid.c | 14 if (!pb_read(stream, &prefix, 1)) in read_prefix()
|
/nanopb-3.4.0/tests/callbacks/ |
D | decode_callbacks.c | 18 if (!pb_read(stream, buffer, stream->bytes_left)) in print_string()
|
/nanopb-3.4.0/spm_headers/nanopb/ |
D | pb_decode.h | 133 bool pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count);
|
/nanopb-3.4.0/tests/alltypes_proto3_callback/ |
D | decode_alltypes_callback.c | 85 if (len > sizeof(buf) - 1 || !pb_read(stream, buf, len)) in read_string() 186 if (len > sizeof(buf) - 1 || !pb_read(stream, buf, len)) in read_repeated_string()
|
/nanopb-3.4.0/tests/alltypes_callback/ |
D | decode_alltypes_callback.c | 85 if (len > sizeof(buf) - 1 || !pb_read(stream, buf, len)) in read_string() 187 if (len > sizeof(buf) - 1 || !pb_read(stream, buf, len)) in read_repeated_string()
|
/nanopb-3.4.0/tests/fuzztest/ |
D | fuzztest.c | 149 return pb_read(stream, NULL, stream->bytes_left); in field_callback()
|
/nanopb-3.4.0/docs/ |
D | reference.md | 737 ### pb_read subsection 742 bool pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count); 751 End of file is signalled by `stream->bytes_left` being zero after pb_read returns false. 870 …erefore check the total length in `stream->bytes_left` and read the data using [pb_read](#pb_read).
|
D | concepts.md | 60 pb_read.
|