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:
@ -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_;
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user