/nanopb-2.7.6/tests/io_errors/ |
D | io_errors.c | 49 size_t msglen; in main() local 54 msglen = fread(buffer, 1, sizeof(buffer), stdin); in main() 63 for (i = 0; i < msglen; i++) in main() 65 stream.bytes_left = msglen; in main() 83 stream.bytes_left = msglen; in main() 86 fs.fail_after = msglen; in main() 103 for (i = 0; i < msglen; i++) in main() 105 stream.max_size = msglen; in main() 124 stream.max_size = msglen; in main() 128 fs.fail_after = msglen; in main()
|
/nanopb-2.7.6/tests/float_double_conversion/ |
D | float_double_conversion.c | 35 size_t msglen; in main() local 52 msglen = stream.bytes_written; in main() 53 TEST(msglen == 9); in main() 59 pb_istream_t stream = pb_istream_from_buffer(buf, msglen); in main() 67 msglen = ostream.bytes_written; in main() 68 TEST(msglen == 9); in main() 73 pb_istream_t stream = pb_istream_from_buffer(buf, msglen); in main()
|
/nanopb-2.7.6/tests/regression/issue_376/ |
D | test_fixarray.c | 13 pb_size_t msglen = 0; in main() local 24 msglen = stream.bytes_written; in main() 25 TEST(msglen > 5); in main() 29 pb_istream_t stream = pb_istream_from_buffer(buffer, msglen); in main()
|
/nanopb-2.7.6/tests/regression/issue_558/ |
D | mixed.c | 11 size_t msglen; in main() local 27 msglen = ostream.bytes_written; in main() 28 TEST(msglen > 0); in main() 32 pb_istream_t istream = pb_istream_from_buffer(buf, msglen); in main()
|
/nanopb-2.7.6/tests/regression/issue_363/ |
D | test_oneofmsg.c | 13 pb_size_t msglen = 0; in main() local 25 msglen = stream.bytes_written; in main() 26 TEST(msglen > 252); in main() 30 pb_istream_t stream = pb_istream_from_buffer(buffer, msglen); in main()
|
/nanopb-2.7.6/tests/fuzztest/ |
D | flakystream.c | 8 if (state->position + count > state->msglen) in flakystream_callback() 23 void flakystream_init(flakystream_t *stream, const uint8_t *buffer, size_t msglen, size_t fail_afte… in flakystream_init() argument 31 stream->msglen = msglen; in flakystream_init()
|
D | flakystream.h | 13 size_t msglen; member 17 void flakystream_init(flakystream_t *stream, const uint8_t *buffer, size_t msglen, size_t fail_afte…
|
D | fuzztest.c | 65 static bool do_decode(const uint8_t *buffer, size_t msglen, size_t structsize, const pb_msgdesc_t *… in do_decode() argument 90 stream = pb_istream_from_buffer(buffer, msglen); in do_decode() 112 static bool do_stream_decode(const uint8_t *buffer, size_t msglen, size_t fail_after, size_t struct… in do_stream_decode() argument 121 flakystream_init(&stream, buffer, msglen, fail_after); in do_stream_decode() 160 bool do_callback_decode(const uint8_t *buffer, size_t msglen, bool assert_success) in do_callback_decode() argument 169 stream = pb_istream_from_buffer(buffer, msglen); in do_callback_decode() 198 void do_roundtrip(const uint8_t *buffer, size_t msglen, size_t structsize, const pb_msgdesc_t *msgt… in do_roundtrip() argument 229 pb_istream_t stream = pb_istream_from_buffer(buffer, msglen); in do_roundtrip() 364 static bool generate_base_message(uint8_t *buffer, size_t *msglen) in generate_base_message() argument 385 *msglen = stream.bytes_written; in generate_base_message() [all …]
|
D | random_data.c | 176 void rand_protobuf_noise(uint8_t *buffer, size_t bufsize, size_t *msglen) in rand_protobuf_noise() argument 179 size_t max_size = bufsize - 32 - *msglen; in rand_protobuf_noise() 184 size_t s = rand_fill_protobuf(tmp, rand_len(max_size), bufsize - *msglen, 1000); in rand_protobuf_noise() 185 memmove(buffer + s, buffer, *msglen); in rand_protobuf_noise() 188 *msglen += s; in rand_protobuf_noise() 193 … size_t s = rand_fill_protobuf(buffer + *msglen, rand_len(max_size), bufsize - *msglen, 1000); in rand_protobuf_noise() 194 *msglen += s; in rand_protobuf_noise()
|
D | random_data.h | 39 void rand_protobuf_noise(uint8_t *buffer, size_t bufsize, size_t *msglen);
|
/nanopb-2.7.6/tests/regression/issue_342/ |
D | test_extensions.c | 19 pb_size_t msglen = 0; in main() local 34 msglen = stream.bytes_written; in main() 35 TEST(msglen > 3); in main() 39 pb_istream_t stream = pb_istream_from_buffer(buffer, msglen); in main()
|
/nanopb-2.7.6/tests/regression/issue_544/ |
D | submsg_callback.c | 25 size_t msglen; in main() local 40 msglen = ostream.bytes_written; in main() 41 TEST(msglen > 0); in main() 45 pb_istream_t istream = pb_istream_from_buffer(buf, msglen); in main()
|
/nanopb-2.7.6/tests/regression/issue_229/ |
D | multiple_oneof.c | 10 size_t msglen; in main() local 20 msglen = stream.bytes_written; in main() 24 pb_istream_t stream = pb_istream_from_buffer(buf, msglen); in main()
|
/nanopb-2.7.6/tests/proto3_optional/ |
D | optional.c | 10 size_t msglen; in main() local 23 msglen = stream.bytes_written; in main() 28 pb_istream_t stream = pb_istream_from_buffer(buf, msglen); in main()
|
/nanopb-2.7.6/tests/regression/issue_407/ |
D | test_extensions.c | 10 size_t msglen; in main() local 31 msglen = stream.bytes_written; in main() 32 TEST(msglen == 9); /* 3 for number, 3 for submsg tag+len, 3 for second_number */ in main() 58 stream = pb_istream_from_buffer(buffer, msglen); in main()
|
/nanopb-2.7.6/tests/regression/issue_249/ |
D | test.c | 37 pb_size_t msglen; in main() local 44 msglen = stream.bytes_written; in main() 49 pb_istream_t stream = pb_istream_from_buffer(buf, msglen); in main()
|
/nanopb-2.7.6/tests/sort_by_tag/ |
D | sort_by_tag.c | 9 size_t msglen; in main() local 31 msglen = ostream.bytes_written; in main() 35 pb_istream_t istream = pb_istream_from_buffer(buf, msglen); in main()
|
/nanopb-2.7.6/ |
D | pb_decode.h | 134 pb_istream_t pb_istream_from_buffer(const pb_byte_t *buf, size_t msglen);
|
D | pb_decode.c | 142 pb_istream_t pb_istream_from_buffer(const pb_byte_t *buf, size_t msglen) in pb_istream_from_buffer() argument 159 stream.bytes_left = msglen; in pb_istream_from_buffer()
|
/nanopb-2.7.6/spm_headers/nanopb/ |
D | pb_decode.h | 134 pb_istream_t pb_istream_from_buffer(const pb_byte_t *buf, size_t msglen);
|