mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
a58dc6af93
git-svn-id: file:///svn/tokudb@1175 c7de825b-a66e-492c-adef-691d508d4ae1
26 lines
566 B
C++
26 lines
566 B
C++
#include <db.h>
|
|
#include <string.h>
|
|
|
|
class Dbt;
|
|
|
|
// DBT and Dbt objects are interchangeable. So watch out if you use Dbt to make other classes (e.g., with subclassing)
|
|
class Dbt : private DBT
|
|
{
|
|
public:
|
|
|
|
void * get_data(void) const { return data; }
|
|
void set_data(void *p) { data = p; }
|
|
|
|
u_int32_t get_size(void) const { return size; }
|
|
void set_size(u_int32_t p) { size = p; }
|
|
|
|
DBT *get_DBT(void) { return (DBT*)this; }
|
|
|
|
Dbt(void);
|
|
~Dbt();
|
|
|
|
private:
|
|
// Nothing here.
|
|
}
|
|
;
|
|
|