/nanopb-3.4.0/tests/regression/issue_338/ |
D | bigvalue.proto | 48 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-3.4.0/tests/regression/issue_322/ |
D | defaults.c | 11 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()
|
D | defaults.proto | 5 …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-3.4.0/tests/regression/issue_363/ |
D | oneofmsg.proto | 7 bytes device_data_crypted = 1 [(nanopb).max_size = 252]; 8 bytes device_config_crypted = 2 [(nanopb).max_size = 252];
|
D | test_oneofmsg.c | 21 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()
|
D | SConscript | 2 # Incorrect PB_STATIC_ASSERT for bytes inside oneof
|
/nanopb-3.4.0/tests/namingstyle/ |
D | naming_style.proto | 35 required bytes requiredBytes1 = 14; 36 required bytes requiredBytes2 = 15; 37 repeated bytes repeatedBytes1 = 16; 38 repeated bytes repeatedBytes2 = 17;
|
/nanopb-3.4.0/tests/inline/ |
D | inline.proto | 11 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-3.4.0/tests/fuzztest/ |
D | validation.c | 46 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-3.4.0/tests/without_64bit/ |
D | alltypes.proto | 46 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-3.4.0/ |
D | pb_encode.c | 298 const pb_bytes_array_t *bytes = (const pb_bytes_array_t*)field->pData; in pb_check_proto3_default_value() local 299 return bytes->size == 0; in pb_check_proto3_default_value() 643 pb_byte_t bytes[4]; in pb_encode_fixed32() 644 bytes[0] = (pb_byte_t)(val & 0xFF); in pb_encode_fixed32() 645 bytes[1] = (pb_byte_t)((val >> 8) & 0xFF); in pb_encode_fixed32() 646 bytes[2] = (pb_byte_t)((val >> 16) & 0xFF); in pb_encode_fixed32() 647 bytes[3] = (pb_byte_t)((val >> 24) & 0xFF); in pb_encode_fixed32() 648 return pb_write(stream, bytes, 4); in pb_encode_fixed32() 660 pb_byte_t bytes[8]; in pb_encode_fixed64() 661 bytes[0] = (pb_byte_t)(val & 0xFF); in pb_encode_fixed64() [all …]
|
/nanopb-3.4.0/tests/any_type/ |
D | encode_any.c | 27 stream = pb_ostream_from_buffer(msg.details.value.bytes, sizeof(msg.details.value.bytes)); in main()
|
D | anytest.proto | 5 // bytes value = 2; 9 // is inside the bytes field.
|
/nanopb-3.4.0/tests/regression/issue_172/submessage/ |
D | submessage.proto | 3 required bytes data = 1;
|
/nanopb-3.4.0/tests/regression/issue_547/ |
D | test.proto | 6 required bytes mybytes = 1 [(nanopb).max_size = 512];
|
/nanopb-3.4.0/tests/alltypes_proto3/ |
D | alltypes.proto | 58 bytes sng_bytes = 15; 62 bytes sng_fbytes = 19; 81 repeated bytes rep_bytes = 35; 85 repeated bytes rep_fbytes = 39;
|
/nanopb-3.4.0/tests/field_size_16_proto3/ |
D | alltypes.proto | 58 bytes sng_bytes = 15; 62 bytes sng_fbytes = 19; 81 repeated bytes rep_bytes = 35; 85 repeated bytes rep_fbytes = 39;
|
/nanopb-3.4.0/tests/regression/issue_195/ |
D | test.proto | 3 required bytes payload = 2;
|
/nanopb-3.4.0/tests/regression/issue_647/ |
D | repro.proto | 8 bytes bytes_value = 5 [(nanopb).type = FT_POINTER];
|
/nanopb-3.4.0/tests/field_size_16/ |
D | alltypes.proto | 77 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-3.4.0/tests/field_size_32/ |
D | alltypes.proto | 77 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-3.4.0/tests/message_sizes/ |
D | messages2.proto | 8 required bytes data = 2 [(nanopb).max_size = 128];
|
/nanopb-3.4.0/tests/decode_unittests/ |
D | decode_unittests.c | 35 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-3.4.0/tests/alltypes/ |
D | alltypes.proto | 78 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-3.4.0/tests/regression/issue_247/ |
D | SConscript | 2 # bytes in submessage structures.
|