]>
git.proxmox.com Git - ceph.git/blob - ceph/src/common/FixedCDC.cc
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
8 void FixedCDC::calc_chunks(
10 std::vector
<std::pair
<uint64_t, uint64_t>> *chunks
) const
12 size_t len
= bl
.length();
16 for (size_t pos
= 0; pos
< len
; pos
+= chunk_size
) {
17 chunks
->push_back(std::pair
<uint64_t,uint64_t>(pos
, std::min(chunk_size
,