Home
last modified time | relevance | path

Searched refs:pb_read (Results 1 – 12 of 12) sorted by relevance

/nanopb-2.7.6/tests/oneof_callback/
Ddecode_oneof.c33 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/
Ddecode_unittests.c32 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/
Dpb_decode.c85 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 …]
Dpb_decode.h139 bool pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count);
/nanopb-2.7.6/tests/msgid/
Ddecode_msgid.c14 if (!pb_read(stream, &prefix, 1)) in read_prefix()
/nanopb-2.7.6/tests/callbacks/
Ddecode_callbacks.c18 if (!pb_read(stream, buffer, stream->bytes_left)) in print_string()
/nanopb-2.7.6/spm_headers/nanopb/
Dpb_decode.h139 bool pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count);
/nanopb-2.7.6/tests/alltypes_proto3_callback/
Ddecode_alltypes_callback.c85 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/
Ddecode_alltypes_callback.c85 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/
Dfuzztest.c149 return pb_read(stream, NULL, stream->bytes_left); in field_callback()
/nanopb-2.7.6/docs/
Dreference.md724 ### 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).
Dconcepts.md60 pb_read.