Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 56) sorted by relevance

123

/nanopb-2.7.6/tests/regression/issue_338/
Dbigvalue.proto48 bytes value = 2;
53 bytes value = 2;
58 bytes value = 2;
63 bytes value = 2;
68 bytes value = 2;
73 bytes value = 2;
78 bytes value = 2;
83 bytes value = 2;
88 bytes value = 2;
93 bytes value = 2;
[all …]
/nanopb-2.7.6/tests/regression/issue_322/
Ddefaults.c11 TEST(msg->b2.bytes[0] == 0xDE && msg->b2.bytes[1] == 0xAD && in check_defaults()
12 msg->b2.bytes[2] == 0x00 && msg->b2.bytes[3] == 0xBE && in check_defaults()
13 msg->b2.bytes[4] == 0xEF && msg->b2.size == 5); in check_defaults()
14 TEST(msg->b3.bytes[0] == 0xDE && msg->b3.bytes[1] == 0xAD && in check_defaults()
15 msg->b3.bytes[2] == 0x00 && msg->b3.bytes[3] == 0xBE && in check_defaults()
16 msg->b3.bytes[4] == 0xEF && msg->b2.size == 5); in check_defaults()
Ddefaults.proto5 …optional bytes b1 = 1 [default = "\xDE\xAD\x00\xBE\xEF", (nanopb).max_size = 5, (nanopb).fixed_len…
6 optional bytes b2 = 2 [default = "\xDE\xAD\x00\xBE\xEF", (nanopb).max_size = 5];
7 optional bytes b3 = 3 [default = "\xDE\xAD\000\xBE\xEF", (nanopb).max_size = 15];
/nanopb-2.7.6/tests/regression/issue_363/
Doneofmsg.proto7 bytes device_data_crypted = 1 [(nanopb).max_size = 252];
8 bytes device_config_crypted = 2 [(nanopb).max_size = 252];
Dtest_oneofmsg.c21 memset(msg.body_type.device_data_crypted.bytes, 0xAA, 252); in main()
37 TEST(msg.body_type.device_data_crypted.bytes[251] == 0xAA); in main()
DSConscript2 # Incorrect PB_STATIC_ASSERT for bytes inside oneof
/nanopb-2.7.6/tests/inline/
Dinline.proto11 required bytes data = 1 [(nanopb).type = FT_INLINE, (nanopb).max_size = 32];
16 optional bytes data = 1 [(nanopb).type = FT_INLINE, (nanopb).max_size = 64];
/nanopb-2.7.6/tests/fuzztest/
Dvalidation.c46 pb_bytes_array_t *bytes = pData; in validate_static() local
47 assert(PB_BYTES_ARRAY_T_ALLOCSIZE(bytes->size) <= iter->data_size); in validate_static()
121 const pb_bytes_array_t *bytes = pData; in validate_pointer() local
126 bytes = ((const pb_bytes_array_t**)iter->pData)[i]; in validate_pointer()
129 assert(PB_BYTES_ARRAY_T_ALLOCSIZE(bytes->size) <= get_allocation_size(bytes)); in validate_pointer()
/nanopb-2.7.6/tests/without_64bit/
Dalltypes.proto46 required bytes req_bytes = 15;
50 required bytes req_fbytes = 19;
62 repeated bytes rep_bytes = 35;
66 repeated bytes rep_fbytes = 39;
78 optional bytes opt_bytes = 55 [default = "4055"];
82 optional bytes opt_fbytes = 59 [default = "4059"];
/nanopb-2.7.6/
Dpb_encode.c296 const pb_bytes_array_t *bytes = (const pb_bytes_array_t*)field->pData; in pb_check_proto3_default_value() local
297 return bytes->size == 0; in pb_check_proto3_default_value()
636 pb_byte_t bytes[4]; in pb_encode_fixed32() local
637 bytes[0] = (pb_byte_t)(val & 0xFF); in pb_encode_fixed32()
638 bytes[1] = (pb_byte_t)((val >> 8) & 0xFF); in pb_encode_fixed32()
639 bytes[2] = (pb_byte_t)((val >> 16) & 0xFF); in pb_encode_fixed32()
640 bytes[3] = (pb_byte_t)((val >> 24) & 0xFF); in pb_encode_fixed32()
641 return pb_write(stream, bytes, 4); in pb_encode_fixed32()
648 pb_byte_t bytes[8]; in pb_encode_fixed64() local
649 bytes[0] = (pb_byte_t)(val & 0xFF); in pb_encode_fixed64()
[all …]
/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()
Danytest.proto5 // bytes value = 2;
9 // is inside the bytes field.
/nanopb-2.7.6/tests/regression/issue_172/submessage/
Dsubmessage.proto3 required bytes data = 1;
/nanopb-2.7.6/tests/field_size_16_proto3/
Dalltypes.proto58 bytes sng_bytes = 15;
62 bytes sng_fbytes = 19;
81 repeated bytes rep_bytes = 35;
85 repeated bytes rep_fbytes = 39;
/nanopb-2.7.6/tests/alltypes_proto3/
Dalltypes.proto58 bytes sng_bytes = 15;
62 bytes sng_fbytes = 19;
81 repeated bytes rep_bytes = 35;
85 repeated bytes rep_fbytes = 39;
/nanopb-2.7.6/tests/regression/issue_547/
Dtest.proto6 required bytes mybytes = 1 [(nanopb).max_size = 512];
/nanopb-2.7.6/tests/field_size_32/
Dalltypes.proto77 required bytes req_bytes = 15;
81 required bytes req_fbytes = 19;
100 repeated bytes rep_bytes = 10035;
104 repeated bytes rep_fbytes = 10039;
124 optional bytes opt_bytes = 10055 [default = "\x34\x5C\x00\xff"];
128 optional bytes opt_fbytes = 10059 [default = "4059"];
/nanopb-2.7.6/tests/field_size_16/
Dalltypes.proto77 required bytes req_bytes = 15;
81 required bytes req_fbytes = 19;
100 repeated bytes rep_bytes = 10035;
104 repeated bytes rep_fbytes = 10039;
124 optional bytes opt_bytes = 10055 [default = "\x34\x5C\x00\xff"];
128 optional bytes opt_fbytes = 10059 [default = "4059"];
/nanopb-2.7.6/tests/regression/issue_195/
Dtest.proto3 required bytes payload = 2; field
DSConscript2 # bytes. Basically a non-working #define being generated.
/nanopb-2.7.6/tests/regression/issue_647/
Drepro.proto8 bytes bytes_value = 5 [(nanopb).type = FT_POINTER];
/nanopb-2.7.6/tests/decode_unittests/
Ddecode_unittests.c35 if (byte != ref->bytes[i]) in callback_check()
264 struct { pb_size_t size; uint8_t bytes[5]; } d; in main() member
273 TEST((s = S("\x01\xFF"), pb_dec_bytes(&s, &f) && d.size == 1 && d.bytes[0] == 0xFF)) in main()
353 struct { pb_size_t size; uint8_t bytes[10]; } ref; in main() member
359 ref.size = 1; ref.bytes[0] = 0x55; in main()
362 ref.size = 3; ref.bytes[0] = ref.bytes[1] = ref.bytes[2] = 0x55; in main()
365 ref.size = 1; ref.bytes[0] = 0x55; in main()
368 ref.size = 4; ref.bytes[0] = ref.bytes[1] = ref.bytes[2] = ref.bytes[3] = 0xAA; in main()
371 ref.size = 8; memset(ref.bytes, 0xAA, 8); in main()
377 ref.size = 1; ref.bytes[0] = 0x56; in main()
/nanopb-2.7.6/tests/message_sizes/
Dmessages2.proto8 required bytes data = 2 [(nanopb).max_size = 128];
/nanopb-2.7.6/tests/alltypes/
Dalltypes.proto78 required bytes req_bytes = 15;
82 required bytes req_fbytes = 19;
101 repeated bytes rep_bytes = 35;
105 repeated bytes rep_fbytes = 39;
125 optional bytes opt_bytes = 55 [default = "\x34\x5C\x00\xff"];
129 optional bytes opt_fbytes = 59 [default = "4059"];
/nanopb-2.7.6/tests/regression/issue_247/
DSConscript2 # bytes in submessage structures.

123