1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-06-11 16:48:11 +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

31
include/wsrep/buffer.hpp Normal file
View File

@ -0,0 +1,31 @@
//
// Copyright (C) 2018 Codership Oy <info@codership.com>
//
#ifndef WSREP_BUFFER_HPP
#define WSREP_BUFFER_HPP
namespace wsrep
{
class buffer
{
public:
buffer()
: ptr_()
, size_()
{ }
buffer(const void* ptr, size_t size)
: ptr_(ptr)
, size_(size)
{ }
const void* ptr() const { return ptr_; }
size_t size() const { return size_; }
private:
const void* ptr_;
size_t size_;
};
}
#endif // WSREP_BUFFER_HPP