/nanopb-2.7.6/tests/regression/issue_338/ |
D | bigvalue.proto | 48 bytes value = 2; field 53 bytes value = 2; field 58 bytes value = 2; field 63 bytes value = 2; field 68 bytes value = 2; field 73 bytes value = 2; field 78 bytes value = 2; field 83 bytes value = 2; field 88 bytes value = 2; field 93 bytes value = 2; field [all …]
|
/nanopb-2.7.6/tests/alltypes_proto3_callback/ |
D | decode_alltypes_callback.c | 20 uint64_t value; in read_varint() local 21 if (!pb_decode_varint(stream, &value)) in read_varint() 24 TEST((int64_t)value == (intptr_t)*arg); in read_varint() 30 int64_t value; in read_svarint() local 31 if (!pb_decode_svarint(stream, &value)) in read_svarint() 34 TEST(value == (intptr_t)*arg); in read_svarint() 40 uint32_t value; in read_fixed32() local 41 if (!pb_decode_fixed32(stream, &value)) in read_fixed32() 44 TEST(value == *(uint32_t*)*arg); in read_fixed32() 50 uint64_t value; in read_fixed64() local [all …]
|
/nanopb-2.7.6/tests/callbacks/ |
D | decode_callbacks.c | 30 uint64_t value; in print_int32() local 31 if (!pb_decode_varint(stream, &value)) in print_int32() 34 printf((char*)*arg, (long)value); in print_int32() 40 uint32_t value; in print_fixed32() local 41 if (!pb_decode_fixed32(stream, &value)) in print_fixed32() 44 printf((char*)*arg, (long)value); in print_fixed32() 50 uint64_t value; in print_fixed64() local 51 if (!pb_decode_fixed64(stream, &value)) in print_fixed64() 54 printf((char*)*arg, (long)value); in print_fixed64()
|
D | encode_callbacks.c | 29 uint32_t value = 42; in encode_fixed32() local 34 return pb_encode_fixed32(stream, &value); in encode_fixed32() 39 uint64_t value = 42; in encode_fixed64() local 44 return pb_encode_fixed64(stream, &value); in encode_fixed64()
|
/nanopb-2.7.6/tests/alltypes_callback/ |
D | decode_alltypes_callback.c | 20 uint64_t value; in read_varint() local 21 if (!pb_decode_varint(stream, &value)) in read_varint() 24 TEST((int64_t)value == (intptr_t)*arg); in read_varint() 30 int64_t value; in read_svarint() local 31 if (!pb_decode_svarint(stream, &value)) in read_svarint() 34 TEST(value == (intptr_t)*arg); in read_svarint() 40 uint32_t value; in read_fixed32() local 41 if (!pb_decode_fixed32(stream, &value)) in read_fixed32() 44 TEST(value == *(uint32_t*)*arg); in read_fixed32() 50 uint64_t value; in read_fixed64() local [all …]
|
/nanopb-2.7.6/ |
D | pb_encode.h | 142 bool pb_encode_varint(pb_ostream_t *stream, uint64_t value); 144 bool pb_encode_varint(pb_ostream_t *stream, uint32_t value); 150 bool pb_encode_svarint(pb_ostream_t *stream, int64_t value); 152 bool pb_encode_svarint(pb_ostream_t *stream, int32_t value); 160 bool pb_encode_fixed32(pb_ostream_t *stream, const void *value); 165 bool pb_encode_fixed64(pb_ostream_t *stream, const void *value); 171 bool pb_encode_float_as_double(pb_ostream_t *stream, float value);
|
D | pb_encode.c | 604 bool checkreturn pb_encode_varint(pb_ostream_t *stream, pb_uint64_t value) in pb_encode_varint() argument 606 if (value <= 0x7F) in pb_encode_varint() 609 pb_byte_t byte = (pb_byte_t)value; in pb_encode_varint() 615 return pb_encode_varint_32(stream, value, 0); in pb_encode_varint() 617 return pb_encode_varint_32(stream, (uint32_t)value, (uint32_t)(value >> 32)); in pb_encode_varint() 622 bool checkreturn pb_encode_svarint(pb_ostream_t *stream, pb_int64_t value) in pb_encode_svarint() argument 625 if (value < 0) in pb_encode_svarint() 626 zigzagged = ~((pb_uint64_t)value << 1); in pb_encode_svarint() 628 zigzagged = (pb_uint64_t)value << 1; in pb_encode_svarint() 633 bool checkreturn pb_encode_fixed32(pb_ostream_t *stream, const void *value) in pb_encode_fixed32() argument [all …]
|
/nanopb-2.7.6/spm_headers/nanopb/ |
D | pb_encode.h | 142 bool pb_encode_varint(pb_ostream_t *stream, uint64_t value); 144 bool pb_encode_varint(pb_ostream_t *stream, uint32_t value); 150 bool pb_encode_svarint(pb_ostream_t *stream, int64_t value); 152 bool pb_encode_svarint(pb_ostream_t *stream, int32_t value); 160 bool pb_encode_fixed32(pb_ostream_t *stream, const void *value); 165 bool pb_encode_fixed64(pb_ostream_t *stream, const void *value); 171 bool pb_encode_float_as_double(pb_ostream_t *stream, float value);
|
/nanopb-2.7.6/tests/fuzztest/ |
D | random_data.c | 101 uint64_t value; in rand_fill_protobuf() local 102 rand_fill((uint8_t*)&value, sizeof(value)); in rand_fill_protobuf() 103 pb_encode_varint(&stream, value); in rand_fill_protobuf() 107 uint64_t value; in rand_fill_protobuf() local 108 rand_fill((uint8_t*)&value, sizeof(value)); in rand_fill_protobuf() 109 pb_encode_fixed64(&stream, &value); in rand_fill_protobuf() 113 uint32_t value; in rand_fill_protobuf() local 114 rand_fill((uint8_t*)&value, sizeof(value)); in rand_fill_protobuf() 115 pb_encode_fixed32(&stream, &value); in rand_fill_protobuf()
|
/nanopb-2.7.6/tests/raw_decode/ |
D | raw_decode.c | 98 uint64_t value; in raw_decode() local 100 if (!pb_decode_varint(stream, &value)) in raw_decode() 108 g_position - position, (unsigned long long)value); in raw_decode() 112 uint64_t value; in raw_decode() local 114 if (!pb_decode_fixed64(stream, &value)) in raw_decode() 122 g_position - position, (unsigned long long)value); in raw_decode() 126 uint32_t value; in raw_decode() local 128 if (!pb_decode_fixed32(stream, &value)) in raw_decode() 136 g_position - position, (unsigned long)value); in raw_decode()
|
/nanopb-2.7.6/tests/regression/issue_242/ |
D | zero_value.c | 15 int32_t value = 0; in main() local 20 source_ext.dest = &value; in main() 37 int32_t value = 0; in main() local 40 source.opt_int32 = &value; in main()
|
/nanopb-2.7.6/tests/float_double_conversion/ |
D | float_double_conversion.c | 13 float value; member 50 msg.value = orig_double; in main() 62 TEST(memcmp(&msg.value, &expected_float, sizeof(float)) == 0); in main() 80 TEST(isnan(msg.value)); in main() 84 TEST(memcmp(&msg.value, &expected_double, sizeof(double)) == 0); in main()
|
D | doublemsg.proto | 4 required double value = 1; field
|
/nanopb-2.7.6/tests/regression/issue_166/ |
D | enums.proto | 13 required SignedEnum value = 1; field 17 required UnsignedEnum value = 1; field
|
D | enum_encoded_size.c | 19 msg1.value = SignedEnum_SE_MIN; in main() 26 msg1.value = SignedEnum_SE_MAX; in main() 35 msg2.value = UnsignedEnum_UE_MAX; in main()
|
/nanopb-2.7.6/tests/map/ |
D | encode_map.c | 20 msg.numbers[0].value = 1; in main() 21 msg.numbers[1].value = 2; in main() 22 msg.numbers[2].value = 7; in main()
|
D | decode_map.c | 52 TEST((e = find_entry(&msg, "one")) && e->value == 1); in main() 53 TEST((e = find_entry(&msg, "two")) && e->value == 2); in main() 54 TEST((e = find_entry(&msg, "seven")) && e->value == 7); in main()
|
/nanopb-2.7.6/tests/any_type/ |
D | encode_any.c | 27 stream = pb_ostream_from_buffer(msg.details.value.bytes, sizeof(msg.details.value.bytes)); in main() 30 msg.details.value.size = stream.bytes_written; in main()
|
D | anytest.proto | 5 // bytes value = 2; 13 // the type_url and value fields, and then call pb_decode() again on the value.
|
D | decode_any.c | 36 stream = pb_istream_from_buffer(msg.details.value.bytes, msg.details.value.size); in main()
|
/nanopb-2.7.6/tests/site_scons/platforms/avr/ |
D | run_test.c | 26 static void uart_tx_hook(struct avr_irq_t * irq, uint32_t value, void * param) in uart_tx_hook() argument 28 fputc(value, stdout); in uart_tx_hook() 51 static void uart_xon_hook(struct avr_irq_t * irq, uint32_t value, void * param) in uart_xon_hook() argument 89 static void uart_xoff_hook(struct avr_irq_t * irq, uint32_t value, void * param) in uart_xoff_hook() argument 117 static void status_ok_hook(struct avr_irq_t * irq, uint32_t value, void * param) in status_ok_hook() argument 119 g_status_ok = value; in status_ok_hook()
|
/nanopb-2.7.6/examples/using_union_messages/ |
D | unionproto.proto | 12 required int32 value = 1; field 17 required bool value = 1; field
|
/nanopb-2.7.6/tests/any_type/google/protobuf/ |
D | any.options | 2 google.protobuf.Any.value max_size:64
|
/nanopb-2.7.6/tests/encode_unittests/ |
D | encode_unittests.c | 23 int value = 0x55; in fieldcallback() local 26 return pb_encode_varint(stream, value); in fieldcallback() 175 uint8_t value = 1; in main() local 184 field.data_size = sizeof(value); in main() 185 field.pData = &value; in main() 242 struct { pb_size_t size; uint8_t bytes[5]; } value = {5, {'x', 'y', 'z', 'z', 'y'}}; in main() local 244 pb_field_iter_begin(&field, BytesMessage_fields, &value); in main() 248 value.size = 0; in main() 255 char value[30] = "xyzzy"; in main() local 257 pb_field_iter_begin(&field, StringMessage_fields, &value); in main() [all …]
|
/nanopb-2.7.6/tests/oneof_callback/ |
D | decode_oneof.c | 47 uint64_t value; in print_int32() local 48 if (!pb_decode_varint(stream, &value)) in print_int32() 51 printf((char*)*arg, (int)value); in print_int32()
|