Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
other.last_p = other.begin();
}
+ bool buffer::list::contents_equal(ceph::buffer::list& other)
+ {
+ if (length() != other.length())
+ return false;
+ bufferlist::iterator me = begin();
+ bufferlist::iterator him = other.begin();
+ while (!me.end()) {
+ if (*me != *him)
+ return false;
+ ++me;
+ ++him;
+ }
+ return true;
+ }
+
bool buffer::list::is_page_aligned() const
{
for (std::list<ptr>::const_iterator it = _buffers.begin();
#endif
return _len;
}
+ bool contents_equal(buffer::list& other);
bool is_page_aligned() const;
bool is_n_page_sized() const;