Lines Matching refs:kBlockSize
47 static constexpr int kHashesPerBlock = kBlockSize / kDigestSize;
48 static constexpr int kCompressedSizeMax = kBlockSize * 0.95;
53 static constexpr int kCompressBound = std::max(kBlockSize, LZ4_COMPRESSBOUND(kBlockSize));
75 return val & ~(kBlockSize - 1); in roundDownToBlockOffset()
79 return roundDownToBlockOffset(val + kBlockSize - 1); in roundUpToBlockOffset()
83 return roundUpToBlockOffset(bytes) / kBlockSize; in numBytesToNumBlocks()
87 return static_cast<off64_t>(blockIdx) * kBlockSize; in blockIndexToOffset()
142 template <size_t Size = kBlockSize>
162 bytes_read = adb_pread(fd_, buf, kBlockSize, offsetStart); in ReadDataBlock()
168 bytes_read = adb_pread(tree_fd_, buf, kBlockSize, offsetStart); in ReadTreeBlock()
203 pendingBlocksBuffer_.resize(kChunkFlushSize + 2 * kBlockSize); in IncrementalServer()
263 static constexpr auto kChunkFlushSize = 31 * kBlockSize;