1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-30 07:23:07 +03:00

Provider type abstraction, partially completed.

This commit is contained in:
Teemu Ollakka
2018-06-09 23:28:02 +03:00
parent 2cecb3defe
commit e74b214c9c
15 changed files with 646 additions and 263 deletions

View File

@ -13,23 +13,14 @@ namespace wsrep
data()
: buf_()
{
assign(0, 0);
}
data(const void* ptr, size_t len)
: buf_()
: buf_(ptr, len)
{
assign(ptr, len);
}
void assign(const void* ptr, size_t len)
{
buf_.ptr = ptr;
buf_.len = len;
}
const wsrep_buf_t& get() const { return buf_; }
const wsrep::buffer& get() const { return buf_; }
private:
wsrep_buf_t buf_;
wsrep::buffer buf_;
};
}