validBufferBytes = read;
bytesSinceCacheFlush += read;
}
catch (IOException e)
{
throw new FSReadError(e, filePath);
}
if (skipIOCache && bytesSinceCacheFlush >= CACHE_FLUSH_INTERVAL_IN_BYTES)
{
// with random I/O we can't control what we are skipping so