Searched refs:element_size (Results 1 – 8 of 8) sorted by relevance
/packages/modules/Bluetooth/system/osi/src/ |
D | array.cc | 32 size_t element_size; member 43 array_t* array_new(size_t element_size) { in array_new() argument 44 CHECK(element_size > 0); in array_new() 47 osi_calloc(sizeof(array_t) + element_size * INTERNAL_ELEMENTS)); in array_new() 49 array->element_size = element_size; in array_new() 68 return array->data + (index * array->element_size); in array_at() 88 __func__, array->capacity, array->element_size); in array_append_ptr() 93 memcpy(array_at(array, array->length - 1), data, array->element_size); in array_append_ptr() 102 new_capacity * array->element_size); in grow() 107 array->length * array->element_size); in grow()
|
/packages/modules/Bluetooth/system/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(); in GenBoundsCheck() local 281 …ld_ != nullptr && size_field_->GetFieldType() == CountField::kFieldType && !element_size.empty() && in GenBoundsCheck() 282 !element_size.has_dynamic()) { in GenBoundsCheck() 284 << element_size.bytes() << ");"; in GenBoundsCheck() [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);
|
/packages/modules/Bluetooth/system/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()
|
/packages/modules/Bluetooth/system/osi/include/ |
D | array.h | 30 array_t* array_new(size_t element_size);
|
/packages/modules/Bluetooth/system/gd/packet/parser/ |
D | language_y.yy | 719 DEBUG() << "Vector field defined name=" << *$1 << " element_size=" << $3; 725 DEBUG() << "Vector field defined name=" << *$1 << " element_size=" << $3 733 DEBUG() << "Array field defined name=" << *$1 << " element_size=" << $3
|