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