Searched refs:bytesToConsume (Results 1 – 2 of 2) sorted by relevance
109 uint64_t consumeBytes(VmaBatch& batch, uint64_t bytesToConsume) { in consumeBytes() argument110 if (CC_UNLIKELY(bytesToConsume) < 0) { in consumeBytes()115 if (CC_UNLIKELY(bytesToConsume > batch.totalBytes)) { in consumeBytes()117 bytesToConsume = batch.totalBytes; in consumeBytes()121 while (bytesConsumed < bytesToConsume) { in consumeBytes()126 if (CC_UNLIKELY(bytesConsumed + batch.vmas[0].iov_len > bytesToConsume)) { in consumeBytes()128 uint64_t bytesLeftToConsume = bytesToConsume - bytesConsumed; in consumeBytes()
596 long bytesToConsume = (info.size + 511) & ~511; in restoreOneFile() local597 while (bytesToConsume > 0) { in restoreOneFile()598 int toRead = (bytesToConsume > buffer.length) in restoreOneFile()599 ? buffer.length : (int) bytesToConsume; in restoreOneFile()604 bytesToConsume -= nRead; in restoreOneFile()