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::EncryptionTag Struct Reference
Collaboration diagram for duckdb::EncryptionTag:

Public Member Functions

data_ptr_t data ()
 
idx_t size () const
 
bool IsAllZeros () const
 
void SetSize (idx_t size)
 

Private Attributes

unique_ptr< data_t[]> tag
 
idx_t tag_len
 

Constructor & Destructor Documentation

◆ EncryptionTag()

duckdb::EncryptionTag::EncryptionTag ( )
52364 : tag(new data_t[MainHeader::AES_TAG_LEN]()) {
52365 tag_len = MainHeader::AES_TAG_LEN;
52366}
uint8_t data_t
data pointers
Definition duckdb.hpp:246

Member Function Documentation

◆ data()

data_ptr_t duckdb::EncryptionTag::data ( )
52368 {
52369 return tag.get();
52370}

◆ size()

idx_t duckdb::EncryptionTag::size ( ) const
52372 {
52373 return tag_len;
52374}

◆ IsAllZeros()

bool duckdb::EncryptionTag::IsAllZeros ( ) const
52376 {
52377 auto tag_ptr = tag.get();
52378 idx_t len = size();
52379
52380 data_t is_only_zero = 0;
52381 for (idx_t i = 0; i < len; ++i) {
52382 is_only_zero |= tag_ptr[i];
52383 }
52384 return is_only_zero == 0;
52385}

◆ SetSize()

void duckdb::EncryptionTag::SetSize ( idx_t  size)
52387 {
52388 tag_len = size;
52389}

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