Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 45) sorted by relevance

12

/nanopb-2.7.6/tests/regression/issue_338/
Dbigvalue.proto48 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/
Ddecode_alltypes_callback.c20 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/
Ddecode_callbacks.c30 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()
Dencode_callbacks.c29 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/
Ddecode_alltypes_callback.c20 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/
Dpb_encode.h142 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);
Dpb_encode.c604 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/
Dpb_encode.h142 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/
Drandom_data.c101 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/
Draw_decode.c98 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/
Dzero_value.c15 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/
Dfloat_double_conversion.c13 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()
Ddoublemsg.proto4 required double value = 1; field
/nanopb-2.7.6/tests/regression/issue_166/
Denums.proto13 required SignedEnum value = 1; field
17 required UnsignedEnum value = 1; field
Denum_encoded_size.c19 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/
Dencode_map.c20 msg.numbers[0].value = 1; in main()
21 msg.numbers[1].value = 2; in main()
22 msg.numbers[2].value = 7; in main()
Ddecode_map.c52 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/
Dencode_any.c27 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()
Danytest.proto5 // bytes value = 2;
13 // the type_url and value fields, and then call pb_decode() again on the value.
Ddecode_any.c36 stream = pb_istream_from_buffer(msg.details.value.bytes, msg.details.value.size); in main()
/nanopb-2.7.6/tests/site_scons/platforms/avr/
Drun_test.c26 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/
Dunionproto.proto12 required int32 value = 1; field
17 required bool value = 1; field
/nanopb-2.7.6/tests/any_type/google/protobuf/
Dany.options2 google.protobuf.Any.value max_size:64
/nanopb-2.7.6/tests/encode_unittests/
Dencode_unittests.c23 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/
Ddecode_oneof.c47 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()

12