Lines Matching refs:readPtr
146 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()
448 size_t bytesRead = readPtr - (extraFieldStart + offset); in ParseZip64ExtendedInfoInExtraField()