/nanopb-3.4.0/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-3.4.0/ |
D | pb_decode.h | 150 bool pb_decode_varint(pb_istream_t *stream, uint64_t *dest); 157 bool pb_decode_varint32(pb_istream_t *stream, uint32_t *dest); 160 bool pb_decode_bool(pb_istream_t *stream, bool *dest); 165 bool pb_decode_svarint(pb_istream_t *stream, int64_t *dest); 167 bool pb_decode_svarint(pb_istream_t *stream, int32_t *dest); 172 bool pb_decode_fixed32(pb_istream_t *stream, void *dest); 177 bool pb_decode_fixed64(pb_istream_t *stream, void *dest); 182 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 232 *dest = result; in pb_decode_varint32_eof() 236 bool checkreturn pb_decode_varint32(pb_istream_t *stream, uint32_t *dest) in pb_decode_varint32() argument 238 return pb_decode_varint32_eof(stream, dest, NULL); in pb_decode_varint32() 242 bool checkreturn pb_decode_varint(pb_istream_t *stream, uint64_t *dest) in pb_decode_varint() argument 260 *dest = result; in pb_decode_varint() 1345 bool pb_decode_bool(pb_istream_t *stream, bool *dest) in pb_decode_bool() argument 1351 *(bool*)dest = (value != 0); in pb_decode_bool() 1355 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 | 54 pb_byte_t *dest = (pb_byte_t*)stream->state; in buf_write() local 55 stream->state = dest + count; in buf_write() 57 memcpy(dest, buf, count * sizeof(pb_byte_t)); in buf_write()
|
D | pb.h | 457 void *dest; member
|
/nanopb-3.4.0/spm_headers/nanopb/ |
D | pb_decode.h | 150 bool pb_decode_varint(pb_istream_t *stream, uint64_t *dest); 157 bool pb_decode_varint32(pb_istream_t *stream, uint32_t *dest); 160 bool pb_decode_bool(pb_istream_t *stream, bool *dest); 165 bool pb_decode_svarint(pb_istream_t *stream, int64_t *dest); 167 bool pb_decode_svarint(pb_istream_t *stream, int32_t *dest); 172 bool pb_decode_fixed32(pb_istream_t *stream, void *dest); 177 bool pb_decode_fixed64(pb_istream_t *stream, void *dest); 182 bool pb_decode_double_as_float(pb_istream_t *stream, float *dest);
|
D | pb.h | 457 void *dest; member
|
/nanopb-3.4.0/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-3.4.0/extra/ |
D | pb_syshdr.h | 92 char * dest = (char *) s1; in memcpy() local 96 *dest++ = *src++; in memcpy()
|
/nanopb-3.4.0/tests/regression/issue_407/ |
D | test_extensions.c | 26 ext.dest = &extmsg; in main() 54 ext.dest = &extmsg; in main()
|
/nanopb-3.4.0/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-3.4.0/tests/regression/issue_242/ |
D | zero_value.c | 20 source_ext.dest = &value; in main()
|
/nanopb-3.4.0/tests/regression/issue_342/ |
D | test_extensions.c | 29 ext.dest = &callback_def; in main()
|
/nanopb-3.4.0/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-3.4.0/generator/ |
D | nanopb_generator.py | 2249 optparser.add_option("--version", dest="version", action="store_true", 2251 optparser.add_option("-x", dest="exclude", metavar="FILE", action="append", default=[], 2253 optparser.add_option("-e", "--extension", dest="extension", metavar="EXTENSION", default=".pb", 2255 optparser.add_option("-H", "--header-extension", dest="header_extension", metavar="EXTENSION", defa… 2257 optparser.add_option("-S", "--source-extension", dest="source_extension", metavar="EXTENSION", defa… 2259 optparser.add_option("-f", "--options-file", dest="options_file", metavar="FILE", default="%s.optio… 2261 optparser.add_option("-I", "--options-path", "--proto-path", dest="options_path", metavar="DIR", 2264 optparser.add_option("--error-on-unmatched", dest="error_on_unmatched", action="store_true", defaul… 2266 optparser.add_option("--no-error-on-unmatched", dest="error_on_unmatched", action="store_false", de… 2268 optparser.add_option("-D", "--output-dir", dest="output_dir", [all …]
|
/nanopb-3.4.0/docs/ |
D | reference.md | 401 void *dest; 409 | dest | Pointer to the variable that stores the field value (as used by the defaul… 879 bool pb_decode_varint(pb_istream_t *stream, uint64_t *dest); 884 | dest | Storage for the decoded integer. Value is undefined on error. 891 bool pb_decode_varint32(pb_istream_t *stream, uint32_t *dest); 904 bool pb_decode_svarint(pb_istream_t *stream, int64_t *dest); 912 bool pb_decode_fixed32(pb_istream_t *stream, void *dest); 917 | dest | Pointer to destination `int32_t`, `uint32_t` or `float`. 922 writes the bytes to `dest`. 928 bool pb_decode_fixed64(pb_istream_t *stream, void *dest); [all …]
|