Home
last modified time | relevance | path

Searched refs:msglen (Results 1 – 20 of 20) sorted by relevance

/nanopb-3.4.0/tests/float_double_conversion/
Dfloat_double_conversion.c35 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-3.4.0/tests/io_errors/
Dio_errors.c49 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-3.4.0/tests/regression/issue_376/
Dtest_fixarray.c13 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-3.4.0/tests/regression/issue_558/
Dmixed.c11 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-3.4.0/tests/regression/issue_363/
Dtest_oneofmsg.c13 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-3.4.0/tests/fuzztest/
Dflakystream.c8 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()
Dflakystream.h13 size_t msglen; member
17 void flakystream_init(flakystream_t *stream, const uint8_t *buffer, size_t msglen, size_t fail_afte…
Dfuzztest.c65 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 …]
Drandom_data.c176 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()
Drandom_data.h39 void rand_protobuf_noise(uint8_t *buffer, size_t bufsize, size_t *msglen);
/nanopb-3.4.0/tests/regression/issue_342/
Dtest_extensions.c19 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-3.4.0/tests/regression/issue_544/
Dsubmsg_callback.c25 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-3.4.0/tests/regression/issue_229/
Dmultiple_oneof.c10 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-3.4.0/tests/proto3_optional/
Doptional.c10 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-3.4.0/tests/regression/issue_407/
Dtest_extensions.c10 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-3.4.0/tests/regression/issue_249/
Dtest.c37 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-3.4.0/tests/sort_by_tag/
Dsort_by_tag.c9 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-3.4.0/
Dpb_decode.h128 pb_istream_t pb_istream_from_buffer(const pb_byte_t *buf, size_t msglen);
Dpb_decode.c142 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-3.4.0/spm_headers/nanopb/
Dpb_decode.h128 pb_istream_t pb_istream_from_buffer(const pb_byte_t *buf, size_t msglen);