Searched refs:sizeToRead (Results 1 – 2 of 2) sorted by relevance
100 int sizeToRead = Math.toIntExact(Math.min(fileSize, EOCD_MAX_SIZE)); in findEndOfCDRecord() local101 final long readOffset = fileSize - sizeToRead; in findEndOfCDRecord()103 sizeToRead).order(ByteOrder.LITTLE_ENDIAN); in findEndOfCDRecord()105 buffer.position(sizeToRead - EOCD_MIN_SIZE); in findEndOfCDRecord()
113 auto sizeToRead = std::min(size_, endOfCDMaxSize); in FindEndOfCDRecord() local114 auto readOffset = size_ - sizeToRead; in FindEndOfCDRecord()115 FileRegion mapped(fd_, readOffset, sizeToRead); in FindEndOfCDRecord()