/nanopb-3.4.0/tests/stackusage/ |
D | stackusage.c | 22 uint32_t i = 0; in start_stack_measuring() local 23 g_stackptr = (volatile uint32_t*)((uintptr_t)&i - MAX_STACK_ENTRIES * sizeof(uint32_t)); in start_stack_measuring() 24 for (i = 0; i < MAX_STACK_ENTRIES; i++) in start_stack_measuring() 26 g_stackbuf[i] = g_stackptr[i]; in start_stack_measuring() 32 uint32_t i = 0; in end_stack_measuring() local 33 for (i = 0; i < MAX_STACK_ENTRIES; i++) in end_stack_measuring() 35 if (g_stackbuf[i] != g_stackptr[i]) in end_stack_measuring() 37 return (MAX_STACK_ENTRIES - i) * sizeof(uint32_t); in end_stack_measuring()
|
/nanopb-3.4.0/tests/cxx_callback_datatype/ |
D | cxx_callback_datatype.cpp | 14 for (std::vector<int>::const_iterator i = v.begin(); i != v.end(); ++i) { in TestMessage_submessages_callback() local 19 tmp.actual_value = *i; in TestMessage_submessages_callback() 74 for (std::vector<int>::iterator i = source.begin(); i != source.end(); ++i) in main() local 76 fprintf(stderr, "%d, ", *i); in main() 79 for (unsigned i = 0; i != std::min(serialized.size(), outstream.bytes_written); ++i) { in main() local 80 fprintf(stderr, "0x%02x ", serialized[i]); in main() 83 for (std::vector<int>::iterator i = destination.begin(); i != destination.end(); ++i) in main() local 85 fprintf(stderr, "%d, ", *i); in main()
|
/nanopb-3.4.0/tests/regression/issue_249/ |
D | test.c | 8 int i; in write_array() local 9 for (i = 0; i < 5; i++) in write_array() 13 if (!pb_encode_varint(stream, 1000 + i)) in write_array() 22 uint32_t i; in read_array() local 25 if (!pb_decode_varint32(stream, &i)) in read_array() 28 *sum += i; in read_array()
|
/nanopb-3.4.0/tests/inline/ |
D | inline_unittests.c | 11 int i = 0; in main() local 26 for (i = 0; i < 32; i++) { in main() 27 msg1.data[i] = i; in main() 47 for (i = 0; i < 64; i++) { in main() 48 msg2.data[i] = i; in main()
|
/nanopb-3.4.0/tests/regression/issue_504/ |
D | test.c | 15 int i; in main() local 42 for (i = 0; i < ostream.bytes_written; i++) { in main() 43 printf("%02X", buffer[i]); in main() 68 for (i = 0; i < ostream.bytes_written; i++) { in main() 69 printf("%02X", buffer[i]); in main()
|
/nanopb-3.4.0/tests/regression/issue_395/ |
D | test.c | 13 int i; in main() local 27 for (i = 0; i < ostream.bytes_written; i++) { in main() 28 printf("%02X", buffer[i]); in main()
|
/nanopb-3.4.0/tests/map/ |
D | decode_map.c | 15 int i; in find_entry() local 16 for (i = 0; i < msg->numbers_count; i++) in find_entry() 18 if (strcmp(msg->numbers[i].key, key) == 0) in find_entry() 20 return &msg->numbers[i]; in find_entry()
|
/nanopb-3.4.0/tests/io_errors/ |
D | io_errors.c | 61 size_t i; in main() local 63 for (i = 0; i < msglen; i++) in main() 68 fs.fail_after = i; in main() 101 size_t i; in main() local 103 for (i = 0; i < msglen; i++) in main() 109 fs.fail_after = i; in main()
|
/nanopb-3.4.0/tests/fuzztest/ |
D | validation.c | 9 pb_size_t i; in validate_static() local 34 for (i = 0; i < count; i++) in validate_static() 36 void *pData = (char*)iter->pData + iter->data_size * i; in validate_static() 65 pb_size_t i; in validate_pointer() local 100 for (i = 0; i < count; i++) in validate_pointer() 102 void *pData = (char*)iter->pData + iter->data_size * i; in validate_pointer() 113 str = ((const char**)iter->pData)[i]; in validate_pointer() 126 bytes = ((const pb_bytes_array_t**)iter->pData)[i]; in validate_pointer()
|
D | fuzztest.c | 426 int i; in main() local 438 for (i = 0; i < iterations; i++) in main() 440 printf("Iteration %d/%d, seed %lu\n", i, iterations, (unsigned long)random_get_seed()); in main()
|
/nanopb-3.4.0/tests/basic_buffer/ |
D | decode_buffer.c | 18 int i; in print_person() local 32 for (i = 0; i < person.phone_count; i++) in print_person() 34 Person_PhoneNumber *phone = &person.phone[i]; in print_person()
|
/nanopb-3.4.0/tests/basic_stream/ |
D | decode_stream.c | 14 int i; in print_person() local 28 for (i = 0; i < person.phone_count; i++) in print_person() 30 Person_PhoneNumber *phone = &person.phone[i]; in print_person()
|
/nanopb-3.4.0/tests/callbacks/ |
D | encode_callbacks.c | 50 int i; in encode_repeatedstring() local 52 for (i = 0; i < 4; i++) in encode_repeatedstring() 57 if (!pb_encode_string(stream, (uint8_t*)str[i], strlen(str[i]))) in encode_repeatedstring()
|
/nanopb-3.4.0/tests/float_double_conversion/ |
D | float_double_conversion.c | 37 int i; in main() local 38 for (i = 0; i < TESTVALUES_COUNT; i++) in main() 40 double orig_double = testvalues[i]; in main()
|
/nanopb-3.4.0/tests/oneof_callback/ |
D | SConscript | 17 for i in range(1,7): 19 e = env.RunTest("message%d.pb" % i, enc, ARGS = [str(i)]) 21 d2 = env.RunTest("message%d.txt" % i, [dec, e])
|
D | encode_oneof.c | 37 int i; in encode_int32_array() local 38 for (i = 0; i < 15; i++) in encode_int32_array() 43 if (!pb_encode_varint(stream, i)) in encode_int32_array()
|
/nanopb-3.4.0/ |
D | pb_encode.c | 117 size_t i; in safe_read_bool() local 118 for (i = 0; i < sizeof(bool); i++) in safe_read_bool() 120 if (p[i] != 0) in safe_read_bool() 129 pb_size_t i; in encode_array() local 163 for (i = 0; i < count; i++) in encode_array() 180 for (i = 0; i < count; i++) in encode_array() 199 for (i = 0; i < count; i++) in encode_array() 284 pb_size_t i; in pb_check_proto3_default_value() local 286 for (i = 0; i < field->data_size; i++) in pb_check_proto3_default_value() 288 if (p[i] != 0) in pb_check_proto3_default_value() [all …]
|
D | pb_decode.c | 1126 pb_size_t i; in pb_decode_inner() local 1132 for (i = 0; i < (req_field_count >> 5); i++) in pb_decode_inner() 1134 if (fields_seen.bitfield[i] != allbits) in pb_decode_inner() 1668 union { float f; uint32_t i; } out; in pb_decode_double_as_float() member 1720 out.i = mantissa; in pb_decode_double_as_float() 1721 out.i |= (uint32_t)(exponent + 127) << 23; in pb_decode_double_as_float() 1722 out.i |= (uint32_t)sign << 31; in pb_decode_double_as_float()
|
/nanopb-3.4.0/tests/raw_decode/ |
D | raw_decode.c | 47 int i; in print_history() local 54 for (i = HISTORY_LEN - (g_position - position); i < HISTORY_LEN; i++) in print_history() 56 printf("%02x ", g_history[i]); in print_history()
|
/nanopb-3.4.0/tests/site_scons/platforms/avr/ |
D | run_test.c | 169 for (int i = 0; i < g_args.argc; i++) in main() local 171 strncpy(g_args.args[i], argv[i + argc_offset], 15); in main()
|
/nanopb-3.4.0/tests/decode_unittests/ |
D | decode_unittests.c | 26 int i; in callback_check() local 30 for (i = 0; i < ref->size; i++) in callback_check() 35 if (byte != ref->bytes[i]) in callback_check() 78 int64_t i; in main() local 85 … TEST((s = S("\xFF\xFF\xFF\xFF\x0F"), pb_decode_varint(&s, (uint64_t*)&i) && i == UINT32_MAX)); in main() 87 pb_decode_varint(&s, (uint64_t*)&i) && i == -1)); in main()
|
/nanopb-3.4.0/tests/alltypes_proto3/ |
D | alltypes.proto | 98 // properly, i.e. otherwise a bug in last field might not be detected.
|
/nanopb-3.4.0/tests/field_size_16_proto3/ |
D | alltypes.proto | 97 // properly, i.e. otherwise a bug in last field might not be detected.
|
/nanopb-3.4.0/tests/without_64bit/ |
D | alltypes.proto | 94 // properly, i.e. otherwise a bug in last field might not be detected.
|
/nanopb-3.4.0/generator/ |
D | nanopb_generator.py | 255 for i in range(1, 11): 256 if (max_value >> (i * 7)) == 0: 257 return i 485 for i, x in enumerate(self.values): 486 result += '#define %s %s\n' % (self.value_longnames[i], x[0]) 521 self.worst = max(i for i in worst if i is not None) 1259 for i, f in enumerate(desc.oneof_decl): 1262 no_unions.append(i) # No union, but add fields normally 1267 self.oneofs[i] = oneof 1432 hexcoded = ''.join("\\x%02x" % ord(defval[i:i+1]) for i in range(len(defval))) [all …]
|