Searched refs:byte_array (Results 1 – 4 of 4) sorted by relevance
| /trusted-services/components/service/common/serializer/protobuf/ |
| A D | pb_helper.c | 18 return pb_encode_string(stream, byte_array->bytes, byte_array->size); in pb_encode_byte_array() 36 callback.arg = (void*)byte_array; in pb_out_byte_array() 45 callback.arg = (void*)byte_array; in pb_in_byte_array() 53 if (byte_array) { in pb_malloc_byte_array() 55 byte_array->size = num_bytes; in pb_malloc_byte_array() 58 return byte_array; in pb_malloc_byte_array() 63 pb_bytes_array_t *byte_array; in pb_malloc_byte_array_containing_string() local 68 if (byte_array) { in pb_malloc_byte_array_containing_string() 73 return byte_array; in pb_malloc_byte_array_containing_string() 80 if (byte_array) { in pb_malloc_byte_array_containing_bytes() [all …]
|
| A D | pb_helper.h | 19 extern pb_callback_t pb_out_byte_array(const pb_bytes_array_t *byte_array); 22 extern pb_callback_t pb_in_byte_array(pb_bytes_array_t *byte_array);
|
| /trusted-services/components/common/uuid/test/ |
| A D | uuid_tests.cpp | 28 uint8_t byte_array[UUID_OCTETS_LEN]; in TEST() local 29 memset(byte_array, 0, sizeof(byte_array)); in TEST() 31 CHECK(uuid_parse_to_octets(uuid_text, byte_array, sizeof(byte_array))); in TEST() 48 uint8_t byte_array[UUID_OCTETS_LEN]; in TEST() local 49 memset(byte_array, 0, sizeof(byte_array)); in TEST() 51 CHECK(uuid_parse_to_octets(uuid_text, byte_array, sizeof(byte_array))); in TEST() 68 uint8_t byte_array[UUID_OCTETS_LEN]; in TEST() local 69 memset(byte_array, 0, sizeof(byte_array)); in TEST() 71 CHECK(uuid_parse_to_octets(&urn_text[9], byte_array, sizeof(byte_array))); in TEST() 109 memset(byte_array, 0, sizeof(byte_array)); in TEST() [all …]
|
| /trusted-services/components/service/crypto/test/unit/ |
| A D | crypto_msg_encode_decode.cpp | 28 const pb_bytes_array_t *byte_array = (const pb_bytes_array_t *)*arg; in TEST_GROUP() local 31 return pb_encode_string(stream, byte_array->bytes, byte_array->size); in TEST_GROUP() 37 pb_bytes_array_t *byte_array = (pb_bytes_array_t *)*arg; in TEST_GROUP() local 38 if (stream->bytes_left > byte_array->size) return false; in TEST_GROUP() 40 return pb_read(stream, byte_array->bytes, stream->bytes_left); in TEST_GROUP() 43 static pb_callback_t out_byte_array(const pb_bytes_array_t *byte_array) { in TEST_GROUP() 47 callback.arg = (void*)byte_array; in TEST_GROUP() 52 static pb_callback_t in_byte_array(pb_bytes_array_t *byte_array) { in TEST_GROUP() 56 callback.arg = (void*)byte_array; in TEST_GROUP()
|
Completed in 65 milliseconds