Searched refs:kBlockSize (Results 1 – 3 of 3) sorted by relevance
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()[all …]
42 return (offset & ~(kBlockSize - 1)) >> 12; in offsetToBlockIndex()50 constexpr int hash_per_block = kBlockSize / kDigestSize; in verity_tree_blocks_for_file()54 const Size block_count = 1 + (fileSize - 1) / kBlockSize; in verity_tree_blocks_for_file()64 return verity_tree_blocks_for_file(fileSize) * kBlockSize; in verity_tree_size_for_file()241 static constexpr auto kNumBlocksInEocdSearch = kMaxZipCommentSize / kBlockSize + 1; in ZipPriorityBlocks()
33 constexpr int kBlockSize = 4096; variable