Home
last modified time | relevance | path

Searched refs:readPtr (Results 1 – 2 of 2) sorted by relevance

/system/libfmq/include/fmq/
DMessageQueueBase.h1076 auto readPtr = mReadPtr->load(std::memory_order_relaxed); in beginRead() local
1078 if (writePtr - readPtr > mDesc->getSize()) { in beginRead()
1087 if (writePtr - readPtr < nBytesDesired) { in beginRead()
1091 size_t readOffset = readPtr % mDesc->getSize(); in beginRead()
1127 auto readPtr = mReadPtr->load(std::memory_order_relaxed); in commitRead() local
1133 if (writePtr - readPtr > mDesc->getSize()) { in commitRead()
1139 readPtr += nBytesRead; in commitRead()
1140 mReadPtr->store(readPtr, std::memory_order_release); in commitRead()
/system/libziparchive/
Dzip_archive.cc143 static std::optional<T> TryConsumeUnaligned(uint8_t** readPtr, const uint8_t* bufStart, in TryConsumeUnaligned() argument
145 if (bufSize < sizeof(T) || *readPtr - bufStart > bufSize - sizeof(T)) { in TryConsumeUnaligned()
147 sizeof(T), *readPtr - bufStart, bufSize); in TryConsumeUnaligned()
150 return ConsumeUnaligned<T>(readPtr); in TryConsumeUnaligned()
374 auto readPtr = const_cast<uint8_t*>(extraFieldStart + offset); in ParseZip64ExtendedInfoInExtraField() local
375 auto headerId = ConsumeUnaligned<uint16_t>(&readPtr); in ParseZip64ExtendedInfoInExtraField()
376 auto dataSize = ConsumeUnaligned<uint16_t>(&readPtr); in ParseZip64ExtendedInfoInExtraField()
396 TryConsumeUnaligned<uint64_t>(&readPtr, extraFieldStart, extraFieldLength); in ParseZip64ExtendedInfoInExtraField()
401 TryConsumeUnaligned<uint64_t>(&readPtr, extraFieldStart, extraFieldLength); in ParseZip64ExtendedInfoInExtraField()
406 TryConsumeUnaligned<uint64_t>(&readPtr, extraFieldStart, extraFieldLength); in ParseZip64ExtendedInfoInExtraField()
[all …]