Home
last modified time | relevance | path

Searched refs:element_size (Results 1 – 8 of 8) sorted by relevance

/packages/modules/Bluetooth/system/osi/src/
Darray.cc32 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/
Dvector_field.cc25 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 …]
Darray_field.cc25 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()
Darray_field.h25 ArrayField(std::string name, int element_size, int fixed_size, ParseLocation loc);
Dvector_field.h26 VectorField(std::string name, int element_size, std::string size_modifier, ParseLocation loc);
/packages/modules/Bluetooth/system/osi/test/fuzzers/array/
Dfuzz_array.cc30 size_t element_size = in LLVMFuzzerTestOneInput() local
32 array_t* arr = array_new(element_size); in LLVMFuzzerTestOneInput()
/packages/modules/Bluetooth/system/osi/include/
Darray.h30 array_t* array_new(size_t element_size);
/packages/modules/Bluetooth/system/gd/packet/parser/
Dlanguage_y.yy719 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