/external/nanopb-c/tests/alltypes/ |
encode_alltypes.c | 58 alltypes.rep_bytes_count = 5; alltypes.rep_bytes[4].size = 4; 59 memcpy(alltypes.rep_bytes[4].bytes, "2015", 4);
|
decode_alltypes.c | 71 TEST(alltypes.rep_bytes_count == 5 && alltypes.rep_bytes[4].size == 4 && alltypes.rep_bytes[0].size == 0); 72 TEST(memcmp(alltypes.rep_bytes[4].bytes, "2015", 4) == 0);
|
/external/nanopb-c/tests/backwards_compatibility/ |
encode_legacy.c | 61 alltypes.rep_bytes_count = 5; alltypes.rep_bytes[4].size = 4; 62 memcpy(alltypes.rep_bytes[4].bytes, "2015", 4);
|
decode_legacy.c | 74 TEST(alltypes.rep_bytes_count == 5 && alltypes.rep_bytes[4].size == 4 && alltypes.rep_bytes[0].size == 0); 75 TEST(memcmp(alltypes.rep_bytes[4].bytes, "2015", 4) == 0);
|
alltypes_legacy.c | 70 PB_FIELD( 35, BYTES , REPEATED, STATIC, AllTypes, rep_bytes, rep_string, 0), 71 PB_FIELD( 36, MESSAGE , REPEATED, STATIC, AllTypes, rep_submsg, rep_bytes, &SubMessage_fields),
|
alltypes_legacy.h | 93 AllTypes_rep_bytes_t rep_bytes[5]; member in struct:_AllTypes
|
/external/nanopb-c/tests/alltypes_pointer/ |
encode_alltypes_pointer.c | 54 pb_bytes_array_t *rep_bytes[5]= {NULL, NULL, NULL, NULL, (pb_bytes_array_t*)&rep_bytes_4}; local 141 alltypes.rep_bytes_count = 5; alltypes.rep_bytes = rep_bytes;
|
decode_alltypes_pointer.c | 68 TEST(alltypes.rep_bytes_count == 5 && alltypes.rep_bytes[4]->size == 4 && alltypes.rep_bytes[0]->size == 0); 69 TEST(memcmp(&alltypes.rep_bytes[4]->bytes, "2015", 4) == 0);
|
/external/nanopb-c/tests/alltypes_callback/ |
decode_alltypes_callback.c | 202 char* rep_bytes[5] = {"", "", "", "", "2015"}; local 323 alltypes.rep_bytes.funcs.decode = &read_repeated_string; 324 alltypes.rep_bytes.arg = rep_bytes;
|
encode_alltypes_callback.c | 307 alltypes.rep_bytes.funcs.encode = &write_repeated_string; 308 alltypes.rep_bytes.arg = "2015";
|