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 | 498 size_t elementAlign, elementSize; in emitJavaFieldReaderWriter() local 499 mElementType->getAlignmentAndSize(&elementAlign, &elementSize); in emitJavaFieldReaderWriter() 501 out << offsetName << " += " << std::to_string(elementSize) << ";\n"; in emitJavaFieldReaderWriter() 550 size_t elementAlign, elementSize; in emitJavaFieldReaderWriter() local 551 mElementType->getAlignmentAndSize(&elementAlign, &elementSize); in emitJavaFieldReaderWriter() 557 << elementSize in emitJavaFieldReaderWriter()
|
D | VectorType.cpp | 595 size_t elementAlign, elementSize; in EmitJavaFieldReaderWriterForElementType() local 596 elementType->getAlignmentAndSize(&elementAlign, &elementSize); in EmitJavaFieldReaderWriterForElementType() 616 << elementSize << "," in EmitJavaFieldReaderWriterForElementType() 648 iteratorName + " * " + std::to_string(elementSize), in EmitJavaFieldReaderWriterForElementType() 683 << elementSize in EmitJavaFieldReaderWriterForElementType() 705 iteratorName + " * " + std::to_string(elementSize), in EmitJavaFieldReaderWriterForElementType()
|