Searched refs:elementSize (Results 1 – 6 of 6) sorted by relevance
/system/chre/util/ |
D | dynamic_vector_base.cc | 35 bool DynamicVectorBase::doReserve(size_t newCapacity, size_t elementSize) { in doReserve() argument 38 void *newData = memoryAlloc(newCapacity * elementSize); in doReserve() 40 memcpy(newData, mData, mSize * elementSize); in doReserve() 51 bool DynamicVectorBase::doPrepareForPush(size_t elementSize) { in doPrepareForPush() argument 52 return doReserve(getNextGrowthCapacity(), elementSize); in doPrepareForPush() 68 void DynamicVectorBase::doErase(size_t index, size_t elementSize) { in doErase() argument 70 size_t moveAmount = (mSize - index) * elementSize; in doErase() 71 memmove(static_cast<uint8_t *>(mData) + (index * elementSize), in doErase() 72 static_cast<uint8_t *>(mData) + ((index + 1) * elementSize), in doErase() 76 bool DynamicVectorBase::doPushBack(const void *element, size_t elementSize) { in doPushBack() argument [all …]
|
D | buffer_base.cc | 38 size_t elementSize) { in copy_array() argument 45 size_t copyBytes = size * elementSize; in copy_array()
|
/system/chre/util/include/chre/util/ |
D | dynamic_vector_base.h | 45 bool doReserve(size_t newCapacity, size_t elementSize); 55 bool doPrepareForPush(size_t elementSize); 71 void doErase(size_t index, size_t elementSize); 80 bool doPushBack(const void *element, size_t elementSize);
|
D | buffer_base.h | 54 bool copy_array(const void *buffer, size_t size, size_t elementSize);
|
/system/tools/hidl/ |
D | ArrayType.cpp | 420 size_t elementAlign, elementSize; in emitJavaFieldReaderWriter() local 421 mElementType->getAlignmentAndSize(&elementAlign, &elementSize); in emitJavaFieldReaderWriter() 423 out << offsetName << " += " << std::to_string(elementSize) << ";\n"; in emitJavaFieldReaderWriter() 472 size_t elementAlign, elementSize; in emitJavaFieldReaderWriter() local 473 mElementType->getAlignmentAndSize(&elementAlign, &elementSize); in emitJavaFieldReaderWriter() 479 << elementSize in emitJavaFieldReaderWriter()
|
D | VectorType.cpp | 483 size_t elementAlign, elementSize; in EmitJavaFieldReaderWriterForElementType() local 484 elementType->getAlignmentAndSize(&elementAlign, &elementSize); in EmitJavaFieldReaderWriterForElementType() 504 << elementSize << "," in EmitJavaFieldReaderWriterForElementType() 536 iteratorName + " * " + std::to_string(elementSize), in EmitJavaFieldReaderWriterForElementType() 571 << elementSize in EmitJavaFieldReaderWriterForElementType() 593 iteratorName + " * " + std::to_string(elementSize), in EmitJavaFieldReaderWriterForElementType()
|