Home
last modified time | relevance | path

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

/system/libfmq/include/fmq/
DMessageQueueBase.h1165 auto readPtr = mReadPtr->load(std::memory_order_relaxed); in beginRead() local
1166 if (writePtr % sizeof(T) != 0 || readPtr % sizeof(T) != 0) { in beginRead()
1174 if (writePtr - readPtr > mDesc->getSize()) { in beginRead()
1183 if (writePtr - readPtr < nBytesDesired) { in beginRead()
1187 size_t readOffset = readPtr % mDesc->getSize(); in beginRead()
1222 auto readPtr = mReadPtr->load(std::memory_order_relaxed); in commitRead() local
1228 if (writePtr - readPtr > mDesc->getSize()) { in commitRead()
1234 readPtr += nBytesRead; in commitRead()
1235 mReadPtr->store(readPtr, std::memory_order_release); in commitRead()
/system/libziparchive/
Dzip_archive.cc146 static std::optional<T> TryConsumeUnaligned(uint8_t** readPtr, const uint8_t* bufStart, in TryConsumeUnaligned() argument
148 if (bufSize < sizeof(T) || *readPtr - bufStart > bufSize - sizeof(T)) { in TryConsumeUnaligned()
150 sizeof(T), *readPtr - bufStart, bufSize); in TryConsumeUnaligned()
153 return ConsumeUnaligned<T>(readPtr); in TryConsumeUnaligned()
388 auto readPtr = const_cast<uint8_t*>(extraFieldStart + offset); in ParseZip64ExtendedInfoInExtraField() local
389 auto headerId = ConsumeUnaligned<uint16_t>(&readPtr); in ParseZip64ExtendedInfoInExtraField()
390 auto dataSize = ConsumeUnaligned<uint16_t>(&readPtr); in ParseZip64ExtendedInfoInExtraField()
433 &readPtr, extraFieldStart, extraFieldLength); in ParseZip64ExtendedInfoInExtraField()
438 &readPtr, extraFieldStart, extraFieldLength); in ParseZip64ExtendedInfoInExtraField()
443 &readPtr, extraFieldStart, extraFieldLength); in ParseZip64ExtendedInfoInExtraField()
[all …]