Home
last modified time | relevance | path

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

/system/bt/osi/src/
Darray.cc31 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/
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().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 …]
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);
/system/bt/osi/test/fuzzers/array/
Dfuzz_array.cc30 size_t element_size = in LLVMFuzzerTestOneInput() local
32 array_t* arr = array_new(element_size); in LLVMFuzzerTestOneInput()
/system/bt/osi/include/
Darray.h30 array_t* array_new(size_t element_size);
/system/bt/gd/packet/parser/
Dlanguage_y.yy718 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/
Dlegacy_blob.rs482 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()