Searched refs:element_size (Results 1 – 9 of 9) sorted by relevance
/system/bt/osi/src/ |
D | array.cc | 31 size_t element_size; member 42 array_t* array_new(size_t element_size) { in array_new() argument 43 CHECK(element_size > 0); in array_new() 46 osi_calloc(sizeof(array_t) + element_size * INTERNAL_ELEMENTS)); in array_new() 48 array->element_size = element_size; in array_new() 67 return array->data + (index * array->element_size); in array_at() 87 __func__, array->capacity, array->element_size); in array_append_ptr() 92 memcpy(array_at(array, array->length - 1), data, array->element_size); in array_append_ptr() 101 new_capacity * array->element_size); in grow() 106 array->length * array->element_size); in grow()
|
/system/bt/gd/packet/parser/fields/ |
D | vector_field.cc | 25 VectorField::VectorField(std::string name, int element_size, std::string size_modifier, ParseLocati… in VectorField() argument 26 …ld(name, loc), element_field_(new ScalarField("val", element_size, loc)), element_size_(element_si… in VectorField() 28 if (element_size > 64 || element_size < 0) in VectorField() 29 ERROR(this) << __func__ << ": Not implemented for element size = " << element_size; in VectorField() 30 if (element_size % 8 != 0) { in VectorField() 31 …ERROR(this) << "Can only have arrays with elements that are byte aligned (" << element_size << ")"; in VectorField() 260 auto element_size = element_field->GetSize().bytes(); in GenBoundsCheck() local 264 s << "let rem_ = (bytes.len() - " << start_offset.bytes() << ") % " << element_size << ";"; in GenBoundsCheck() 274 << element_size << ");"; in GenBoundsCheck() 307 auto element_size = element_field->GetSize().bytes(); in GenRustGetter() local [all …]
|
D | array_field.cc | 25 ArrayField::ArrayField(std::string name, int element_size, int array_size, ParseLocation loc) in ArrayField() argument 26 …ld(name, loc), element_field_(new ScalarField("val", element_size, loc)), element_size_(element_si… in ArrayField() 28 if (element_size > 64 || element_size < 0) in ArrayField() 29 ERROR(this) << __func__ << ": Not implemented for element size = " << element_size; in ArrayField() 30 if (element_size % 8 != 0) { in ArrayField() 31 …ERROR(this) << "Can only have arrays with elements that are byte aligned (" << element_size << ")"; in ArrayField()
|
D | array_field.h | 25 ArrayField(std::string name, int element_size, int fixed_size, ParseLocation loc);
|
D | vector_field.h | 26 VectorField(std::string name, int element_size, std::string size_modifier, ParseLocation loc);
|
/system/bt/osi/test/fuzzers/array/ |
D | fuzz_array.cc | 30 size_t element_size = in LLVMFuzzerTestOneInput() local 32 array_t* arr = array_new(element_size); in LLVMFuzzerTestOneInput()
|
/system/bt/osi/include/ |
D | array.h | 30 array_t* array_new(size_t element_size);
|
/system/bt/gd/packet/parser/ |
D | language_y.yy | 718 DEBUG() << "Vector field defined name=" << *$1 << " element_size=" << $3; 724 DEBUG() << "Vector field defined name=" << *$1 << " element_size=" << $3 732 DEBUG() << "Array field defined name=" << *$1 << " element_size=" << $3
|
/system/security/keystore2/src/ |
D | legacy_blob.rs | 482 let element_size = in read_key_parameters() localVariable 486 .get(0..element_size as usize) in read_key_parameters() 491 *stream = &stream[element_size as usize..]; in read_key_parameters()
|