Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::AdditionalAuthenticatedData Class Reference
Collaboration diagram for duckdb::AdditionalAuthenticatedData:

Public Member Functions

 AdditionalAuthenticatedData (Allocator &allocator)
 
template<typename T >
void WriteData (const T &val)
 
void WriteStringData (const std::string &val) const
 
data_ptr_t data () const
 
idx_t size () const
 

Protected Attributes

unique_ptr< MemoryStreamadditional_authenticated_data
 

Static Private Attributes

static constexpr uint32_t INITIAL_AAD_CAPACITY = 32
 

Constructor & Destructor Documentation

◆ AdditionalAuthenticatedData()

duckdb::AdditionalAuthenticatedData::AdditionalAuthenticatedData ( Allocator allocator)
inlineexplicit
51810 : additional_authenticated_data(make_uniq<MemoryStream>(allocator, INITIAL_AAD_CAPACITY)) {
51811 }

Member Function Documentation

◆ WriteData()

template<typename T >
void duckdb::AdditionalAuthenticatedData::WriteData ( const T &  val)
inline
51816 {
51817 additional_authenticated_data->WriteData(reinterpret_cast<const_data_ptr_t>(&val), sizeof(val));
51818 }

◆ WriteStringData()

void duckdb::AdditionalAuthenticatedData::WriteStringData ( const std::string &  val) const
51878 {
51879 additional_authenticated_data->WriteData(reinterpret_cast<const_data_ptr_t>(val.data()), val.size());
51880}

◆ data()

data_ptr_t duckdb::AdditionalAuthenticatedData::data ( ) const
51870 {
51871 return additional_authenticated_data->GetData();
51872}

◆ size()

idx_t duckdb::AdditionalAuthenticatedData::size ( ) const
51874 {
51875 return additional_authenticated_data->GetPosition();
51876}

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