Bitcoin Core  27.99.0
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
wallet::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
 
uint32_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 239 of file bdb.cpp.

Constructor & Destructor Documentation

◆ SafeDbt() [1/2]

wallet::SafeDbt::SafeDbt ( )

Definition at line 258 of file bdb.cpp.

◆ SafeDbt() [2/2]

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

Definition at line 263 of file bdb.cpp.

◆ ~SafeDbt()

wallet::SafeDbt::~SafeDbt ( )

Definition at line 268 of file bdb.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ get_data()

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

Definition at line 282 of file bdb.cpp.

Here is the caller graph for this function:

◆ get_size()

uint32_t wallet::SafeDbt::get_size ( ) const

Definition at line 287 of file bdb.cpp.

Here is the caller graph for this function:

◆ operator Dbt *()

wallet::SafeDbt::operator Dbt * ( )

Definition at line 292 of file bdb.cpp.

Member Data Documentation

◆ m_dbt

Dbt wallet::SafeDbt::m_dbt
private

Definition at line 241 of file bdb.cpp.


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