MCPcopy Create free account
hub / github.com/ceph/ceph / is_aligned_size_and_memory

Method is_aligned_size_and_memory

src/common/buffer.cc:1050–1060  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1048 }
1049
1050 bool buffer::list::is_aligned_size_and_memory(
1051 const unsigned align_size,
1052 const unsigned align_memory) const
1053 {
1054 for (const auto& node : _buffers) {
1055 if (!node.is_aligned(align_memory) || !node.is_n_align_sized(align_size)) {
1056 return false;
1057 }
1058 }
1059 return true;
1060 }
1061
1062 bool buffer::list::is_zero() const {
1063 for (const auto& node : _buffers) {

Callers

nothing calls this directly

Calls 2

is_n_align_sizedMethod · 0.80
is_alignedMethod · 0.45

Tested by

no test coverage detected