/nanopb-2.7.6/tests/decode_unittests/ |
D | decode_unittests.c | 304 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/ |
D | pb_decode.h | 156 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);
|
D | pb_decode.c | 25 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 …]
|
D | pb_common.c | 177 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()
|
D | pb_encode.c | 55 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()
|
D | pb.h | 420 void *dest; member
|
/nanopb-2.7.6/spm_headers/nanopb/ |
D | pb_decode.h | 156 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);
|
D | pb.h | 420 void *dest; member
|
/nanopb-2.7.6/tests/extensions/ |
D | encode_extensions.c | 27 ext1.dest = &extensionfield1; in main() 31 ext2.dest = &extensionfield2; in main()
|
D | decode_extensions.c | 34 ext1.dest = &extensionfield1; in main() 38 ext2.dest = &extensionfield2; in main()
|
/nanopb-2.7.6/extra/ |
D | pb_syshdr.h | 92 char * dest = (char *) s1; in memcpy() local 96 *dest++ = *src++; in memcpy()
|
/nanopb-2.7.6/tests/regression/issue_407/ |
D | test_extensions.c | 26 ext.dest = &extmsg; in main() 54 ext.dest = &extmsg; in main()
|
/nanopb-2.7.6/tests/mem_release/ |
D | mem_release.c | 35 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/ |
D | zero_value.c | 20 source_ext.dest = &value; in main()
|
/nanopb-2.7.6/tests/regression/issue_342/ |
D | test_extensions.c | 29 ext.dest = &callback_def; in main()
|
/nanopb-2.7.6/tests/fuzztest/ |
D | generate_message.c | 64 ext.dest = &extmsg; in generate_message()
|
D | fuzztest.c | 78 ext.dest = &extmsg; in do_decode() 211 ext.dest = &extmsg; in do_roundtrip()
|
/nanopb-2.7.6/generator/ |
D | nanopb_generator.py | 2026 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/ |
D | reference.md | 388 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 …]
|