Home
last modified time | relevance | path

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

/nanopb-3.4.0/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-3.4.0/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-3.4.0/
Dpb_decode.c81 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 …]
Dpb_decode.h133 bool pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count);
DCHANGELOG.txt12 Safeguard substraction in pb_read() with custom streams (#697)
/nanopb-3.4.0/tests/msgid/
Ddecode_msgid.c14 if (!pb_read(stream, &prefix, 1)) in read_prefix()
/nanopb-3.4.0/tests/callbacks/
Ddecode_callbacks.c18 if (!pb_read(stream, buffer, stream->bytes_left)) in print_string()
/nanopb-3.4.0/spm_headers/nanopb/
Dpb_decode.h133 bool pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count);
/nanopb-3.4.0/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-3.4.0/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-3.4.0/tests/fuzztest/
Dfuzztest.c149 return pb_read(stream, NULL, stream->bytes_left); in field_callback()
/nanopb-3.4.0/docs/
Dreference.md737 ### 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).
Dconcepts.md60 pb_read.