Searched refs:pb_read (Results 1 – 12 of 12) sorted by relevance
/nanopb-2.7.6/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-2.7.6/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-2.7.6/ |
D | pb_decode.c | 85 bool checkreturn pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count) in pb_read() function 97 if (!pb_read(stream, tmp, 16)) in pb_read() 103 return pb_read(stream, tmp, count); in pb_read() 268 if (!pb_read(stream, &byte, 1)) in pb_skip_varint() 285 return pb_read(stream, NULL, (size_t)length); in pb_skip_string() 310 case PB_WT_64BIT: return pb_read(stream, NULL, 8); in pb_skip_field() 312 case PB_WT_32BIT: return pb_read(stream, NULL, 4); in pb_skip_field() 333 if (!pb_read(stream, buf, 1)) in read_raw_value() 340 return pb_read(stream, buf, 8); in read_raw_value() 344 return pb_read(stream, buf, 4); in read_raw_value() [all …]
|
D | pb_decode.h | 139 bool pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count);
|
/nanopb-2.7.6/tests/msgid/ |
D | decode_msgid.c | 14 if (!pb_read(stream, &prefix, 1)) in read_prefix()
|
/nanopb-2.7.6/tests/callbacks/ |
D | decode_callbacks.c | 18 if (!pb_read(stream, buffer, stream->bytes_left)) in print_string()
|
/nanopb-2.7.6/spm_headers/nanopb/ |
D | pb_decode.h | 139 bool pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count);
|
/nanopb-2.7.6/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-2.7.6/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-2.7.6/tests/fuzztest/ |
D | fuzztest.c | 149 return pb_read(stream, NULL, stream->bytes_left); in field_callback()
|
/nanopb-2.7.6/docs/ |
D | reference.md | 724 ### pb_read subsection 729 bool pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count); 738 End of file is signalled by `stream->bytes_left` being zero after pb_read returns false. 857 …erefore check the total length in `stream->bytes_left` and read the data using [pb_read](#pb_read).
|
D | concepts.md | 60 pb_read.
|