Home
last modified time | relevance | path

Searched refs:dest (Results 1 – 19 of 19) sorted by relevance

/nanopb-2.7.6/tests/decode_unittests/
Ddecode_unittests.c304 IntegerArray dest; in main() local
307 TEST((s = S(""), pb_decode(&s, IntegerArray_fields, &dest) && dest.data_count == 0)) in main()
308 TEST((s = S("\x08\x01\x08\x02"), pb_decode(&s, IntegerArray_fields, &dest) in main()
309 && dest.data_count == 2 && dest.data[0] == 1 && dest.data[1] == 2)) in main()
311 … TEST(pb_decode(&s, IntegerArray_fields, &dest) && dest.data_count == 10 && dest.data[9] == 10) in main()
313 TEST(!pb_decode(&s, IntegerArray_fields, &dest)) in main()
318 IntegerArray dest; in main() local
321 TEST((s = S("\x0A\x00"), pb_decode(&s, IntegerArray_fields, &dest) in main()
322 && dest.data_count == 0)) in main()
323 TEST((s = S("\x0A\x01\x01"), pb_decode(&s, IntegerArray_fields, &dest) in main()
[all …]
/nanopb-2.7.6/
Dpb_decode.h156 bool pb_decode_varint(pb_istream_t *stream, uint64_t *dest);
163 bool pb_decode_varint32(pb_istream_t *stream, uint32_t *dest);
166 bool pb_decode_bool(pb_istream_t *stream, bool *dest);
171 bool pb_decode_svarint(pb_istream_t *stream, int64_t *dest);
173 bool pb_decode_svarint(pb_istream_t *stream, int32_t *dest);
178 bool pb_decode_fixed32(pb_istream_t *stream, void *dest);
183 bool pb_decode_fixed64(pb_istream_t *stream, void *dest);
188 bool pb_decode_double_as_float(pb_istream_t *stream, float *dest);
Dpb_decode.c25 static bool checkreturn pb_decode_varint32_eof(pb_istream_t *stream, uint32_t *dest, bool *eof);
170 static bool checkreturn pb_decode_varint32_eof(pb_istream_t *stream, uint32_t *dest, bool *eof) in pb_decode_varint32_eof() argument
230 *dest = result; in pb_decode_varint32_eof()
234 bool checkreturn pb_decode_varint32(pb_istream_t *stream, uint32_t *dest) in pb_decode_varint32() argument
236 return pb_decode_varint32_eof(stream, dest, NULL); in pb_decode_varint32()
240 bool checkreturn pb_decode_varint(pb_istream_t *stream, uint64_t *dest) in pb_decode_varint() argument
258 *dest = result; in pb_decode_varint()
1327 bool pb_decode_bool(pb_istream_t *stream, bool *dest) in pb_decode_bool() argument
1333 *(bool*)dest = (value != 0); in pb_decode_bool()
1337 bool pb_decode_svarint(pb_istream_t *stream, pb_int64_t *dest) in pb_decode_svarint() argument
[all …]
Dpb_common.c177 status = pb_field_iter_begin(iter, msg, &extension->dest); in pb_field_iter_begin_extension()
181 status = pb_field_iter_begin(iter, msg, extension->dest); in pb_field_iter_begin_extension()
Dpb_encode.c55 pb_byte_t *dest = (pb_byte_t*)stream->state; in buf_write() local
56 stream->state = dest + count; in buf_write()
59 dest[i] = buf[i]; in buf_write()
Dpb.h420 void *dest; member
/nanopb-2.7.6/spm_headers/nanopb/
Dpb_decode.h156 bool pb_decode_varint(pb_istream_t *stream, uint64_t *dest);
163 bool pb_decode_varint32(pb_istream_t *stream, uint32_t *dest);
166 bool pb_decode_bool(pb_istream_t *stream, bool *dest);
171 bool pb_decode_svarint(pb_istream_t *stream, int64_t *dest);
173 bool pb_decode_svarint(pb_istream_t *stream, int32_t *dest);
178 bool pb_decode_fixed32(pb_istream_t *stream, void *dest);
183 bool pb_decode_fixed64(pb_istream_t *stream, void *dest);
188 bool pb_decode_double_as_float(pb_istream_t *stream, float *dest);
Dpb.h420 void *dest; member
/nanopb-2.7.6/tests/extensions/
Dencode_extensions.c27 ext1.dest = &extensionfield1; in main()
31 ext2.dest = &extensionfield2; in main()
Ddecode_extensions.c34 ext1.dest = &extensionfield1; in main()
38 ext2.dest = &extensionfield2; in main()
/nanopb-2.7.6/extra/
Dpb_syshdr.h92 char * dest = (char *) s1; in memcpy() local
96 *dest++ = *src++; in memcpy()
/nanopb-2.7.6/tests/regression/issue_407/
Dtest_extensions.c26 ext.dest = &extmsg; in main()
54 ext.dest = &extmsg; in main()
/nanopb-2.7.6/tests/mem_release/
Dmem_release.c35 ext1.dest = &msg->static_req_submsg; in fill_TestMessage()
38 ext2.dest = &msg->static_req_submsg; in fill_TestMessage()
76 ext1.dest = NULL; in test_TestMessage()
79 ext2.dest = &ext2_dest; in test_TestMessage()
/nanopb-2.7.6/tests/regression/issue_242/
Dzero_value.c20 source_ext.dest = &value; in main()
/nanopb-2.7.6/tests/regression/issue_342/
Dtest_extensions.c29 ext.dest = &callback_def; in main()
/nanopb-2.7.6/tests/fuzztest/
Dgenerate_message.c64 ext.dest = &extmsg; in generate_message()
Dfuzztest.c78 ext.dest = &extmsg; in do_decode()
211 ext.dest = &extmsg; in do_roundtrip()
/nanopb-2.7.6/generator/
Dnanopb_generator.py2026 optparser.add_option("--version", dest="version", action="store_true",
2028 optparser.add_option("-x", dest="exclude", metavar="FILE", action="append", default=[],
2030 optparser.add_option("-e", "--extension", dest="extension", metavar="EXTENSION", default=".pb",
2032 optparser.add_option("-H", "--header-extension", dest="header_extension", metavar="EXTENSION", defa…
2034 optparser.add_option("-S", "--source-extension", dest="source_extension", metavar="EXTENSION", defa…
2036 optparser.add_option("-f", "--options-file", dest="options_file", metavar="FILE", default="%s.optio…
2038 optparser.add_option("-I", "--options-path", dest="options_path", metavar="DIR",
2041 optparser.add_option("--error-on-unmatched", dest="error_on_unmatched", action="store_true", defaul…
2043 optparser.add_option("--no-error-on-unmatched", dest="error_on_unmatched", action="store_false", de…
2045 optparser.add_option("-D", "--output-dir", dest="output_dir",
[all …]
/nanopb-2.7.6/docs/
Dreference.md388 void *dest;
396 | dest | Pointer to the variable that stores the field value (as used by the defaul…
866 bool pb_decode_varint(pb_istream_t *stream, uint64_t *dest);
871 | dest | Storage for the decoded integer. Value is undefined on error.
878 bool pb_decode_varint32(pb_istream_t *stream, uint32_t *dest);
891 bool pb_decode_svarint(pb_istream_t *stream, int64_t *dest);
899 bool pb_decode_fixed32(pb_istream_t *stream, void *dest);
904 | dest | Pointer to destination `int32_t`, `uint32_t` or `float`.
909 writes the bytes to `dest`.
915 bool pb_decode_fixed64(pb_istream_t *stream, void *dest);
[all …]