/nanopb-2.7.6/tests/fuzztest/ |
D | flakystream.c | 10 stream->bytes_left = 0; in flakystream_callback() 27 stream->stream.bytes_left = SIZE_MAX; in flakystream_init()
|
D | fuzztest.c | 149 return pb_read(stream, NULL, stream->bytes_left); in field_callback()
|
/nanopb-2.7.6/tests/raw_decode/ |
D | raw_decode.c | 40 stream->bytes_left = 0; in callback() 66 while (stream->bytes_left) in raw_decode() 151 if (substream.bytes_left == 0) in raw_decode() 161 (int)substream.bytes_left); in raw_decode()
|
/nanopb-2.7.6/ |
D | pb_decode.c | 107 if (stream->bytes_left < count) in pb_read() 118 stream->bytes_left -= count; in pb_read() 126 if (stream->bytes_left == 0) in pb_readbyte() 137 stream->bytes_left--; in pb_readbyte() 159 stream.bytes_left = msglen; in pb_istream_from_buffer() 177 if (stream->bytes_left == 0) in pb_decode_varint32_eof() 366 if (substream->bytes_left < size) in pb_make_string_substream() 369 substream->bytes_left = (size_t)size; in pb_make_string_substream() 370 stream->bytes_left -= (size_t)size; in pb_make_string_substream() 376 if (substream->bytes_left) { in pb_close_string_substream() [all …]
|
D | pb_decode.h | 41 size_t bytes_left; member
|
/nanopb-2.7.6/tests/inline/ |
D | inline_unittests.c | 35 TEST(istream.bytes_left == 0); in main() 56 TEST(istream.bytes_left == 0); in main()
|
/nanopb-2.7.6/tests/callbacks/ |
D | decode_callbacks.c | 15 if (stream->bytes_left > sizeof(buffer) - 1) in print_string() 18 if (!pb_read(stream, buffer, stream->bytes_left)) in print_string()
|
/nanopb-2.7.6/tests/regression/GHSA-gcx3-7m76-287p/ |
D | test.c | 19 stream->bytes_left = 0; in stream_callback()
|
/nanopb-2.7.6/tests/fixed_count/ |
D | fixed_count_unittests.c | 34 TEST(istream.bytes_left == 0); in main() 83 TEST(istream.bytes_left == 0); in main() 133 TEST(istream.bytes_left == 0); in main()
|
/nanopb-2.7.6/examples/network_server/ |
D | common.c | 28 stream->bytes_left = 0; /* EOF */ in read_callback()
|
/nanopb-2.7.6/tests/io_errors/ |
D | io_errors.c | 65 stream.bytes_left = msglen; in main() 83 stream.bytes_left = msglen; in main()
|
/nanopb-2.7.6/tests/oneof_callback/ |
D | decode_oneof.c | 26 int strlen = istream->bytes_left; in SubMsg3_callback() 58 int strlen = stream->bytes_left; in print_string()
|
/nanopb-2.7.6/tests/decode_unittests/ |
D | decode_unittests.c | 54 TEST(stream.bytes_left == sizeof(buffer1) - 6) in main() 55 TEST(pb_read(&stream, buffer2 + 6, stream.bytes_left)) in main() 57 TEST(stream.bytes_left == 0) in main() 113 TEST((s = S("\x00""foobar"), pb_skip_varint(&s) && s.bytes_left == 6)) in main() 114 TEST((s = S("\xAC\x02""foobar"), pb_skip_varint(&s) && s.bytes_left == 6)) in main() 116 pb_skip_varint(&s) && s.bytes_left == 6)) in main() 123 TEST((s = S("\x00""foobar"), pb_skip_string(&s) && s.bytes_left == 6)) in main() 124 TEST((s = S("\x04""testfoobar"), pb_skip_string(&s) && s.bytes_left == 6)) in main()
|
/nanopb-2.7.6/tests/basic_stream/ |
D | decode_stream.c | 69 stream->bytes_left = 0; in callback()
|
/nanopb-2.7.6/spm_headers/nanopb/ |
D | pb_decode.h | 41 size_t bytes_left; member
|
/nanopb-2.7.6/docs/ |
D | concepts.md | 59 3) `bytes_written` and `bytes_left` are updated by pb_write and 62 `bytes_left`, `bytes_written` and `max_size` have smaller values 114 getting EOF error when reading, set `bytes_left` to 0 and return 124 size_t bytes_left; 149 stream->bytes_left = 0; 301 parsed, and is available at `stream->bytes_left`. 312 while (stream->bytes_left) 574 4) Exceeding the max_size or bytes_left of a stream.
|
D | security.md | 51 1. Nanopb will never read more than `bytes_left` bytes from
|
D | reference.md | 736 | returns | True on success, false if `stream->bytes_left` is less than `count` or if … 738 End of file is signalled by `stream->bytes_left` being zero after pb_read returns false. 857 You can therefore check the total length in `stream->bytes_left` and read the data using [pb_read](… 953 This is interpreted as a number of bytes, and the substream is set up so that its `bytes_left` is i…
|
/nanopb-2.7.6/tests/alltypes_proto3_callback/ |
D | decode_alltypes_callback.c | 83 size_t len = stream->bytes_left; in read_string() 184 size_t len = stream->bytes_left; in read_repeated_string()
|
/nanopb-2.7.6/tests/alltypes_callback/ |
D | decode_alltypes_callback.c | 83 size_t len = stream->bytes_left; in read_string() 185 size_t len = stream->bytes_left; in read_repeated_string()
|