Bitcoin Core  0.18.99
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
BerkeleyBatch::SafeDbt Class Referencefinal

RAII class that automatically cleanses its data on destruction. More...

Public Member Functions

 SafeDbt ()
 
 SafeDbt (void *data, size_t size)
 
 ~SafeDbt ()
 
const void * get_data () const
 
u_int32_t get_size () const
 
 operator Dbt * ()
 

Private Attributes

Dbt m_dbt
 

Detailed Description

RAII class that automatically cleanses its data on destruction.

Definition at line 205 of file db.h.

Constructor & Destructor Documentation

◆ SafeDbt() [1/2]

BerkeleyBatch::SafeDbt::SafeDbt ( )

Definition at line 293 of file db.cpp.

◆ SafeDbt() [2/2]

BerkeleyBatch::SafeDbt::SafeDbt ( void *  data,
size_t  size 
)

Definition at line 298 of file db.cpp.

◆ ~SafeDbt()

BerkeleyBatch::SafeDbt::~SafeDbt ( )

Definition at line 303 of file db.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ get_data()

const void * BerkeleyBatch::SafeDbt::get_data ( ) const

Definition at line 317 of file db.cpp.

Here is the caller graph for this function:

◆ get_size()

u_int32_t BerkeleyBatch::SafeDbt::get_size ( ) const

Definition at line 322 of file db.cpp.

Here is the caller graph for this function:

◆ operator Dbt *()

BerkeleyBatch::SafeDbt::operator Dbt * ( )

Definition at line 327 of file db.cpp.

Member Data Documentation

◆ m_dbt

Dbt BerkeleyBatch::SafeDbt::m_dbt
private

Definition at line 207 of file db.h.


The documentation for this class was generated from the following files: