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::ByteWriter< EMPTY > Class Template Reference

Public Member Functions

idx_t BytesWritten () const
void Flush ()
void ByteAlign ()
void SetStream (uint8_t *buffer)
template<class T, uint8_t SIZE>
void WriteValue (const T &value)
template<class T>
void WriteValue (const T &value, const uint8_t &size)

Private Attributes

uint8_t * buffer
idx_t index

Constructor & Destructor Documentation

◆ ByteWriter()

template<bool EMPTY>
duckdb::ByteWriter< EMPTY >::ByteWriter ( )
inline
391993 : buffer(nullptr), index(0) {
391994 }

Member Function Documentation

◆ BytesWritten()

template<bool EMPTY>
idx_t duckdb::ByteWriter< EMPTY >::BytesWritten ( ) const
inline
391997 {
391998 return index;
391999 }

◆ Flush()

template<bool EMPTY>
void duckdb::ByteWriter< EMPTY >::Flush ( )
inline
392001 {
392002 }

◆ ByteAlign()

template<bool EMPTY>
void duckdb::ByteWriter< EMPTY >::ByteAlign ( )
inline
392004 {
392005 }

◆ SetStream()

template<bool EMPTY>
void duckdb::ByteWriter< EMPTY >::SetStream ( uint8_t * buffer)
inline
392007 {
392008 this->buffer = buffer;
392009 this->index = 0;
392010 }

◆ WriteValue() [1/2]

template<bool EMPTY>
template<class T, uint8_t SIZE>
void duckdb::ByteWriter< EMPTY >::WriteValue ( const T & value)
inline
392013 {
392014 const uint8_t bytes = (SIZE >> 3) + ((SIZE & 7) != 0);
392015 if (!EMPTY) {
392016 memcpy((void *)(buffer + index), &value, bytes);
392017 }
392018 index += bytes;
392019 }
Definition duckdb.cpp:391991

◆ WriteValue() [2/2]

template<bool EMPTY>
template<class T>
void duckdb::ByteWriter< EMPTY >::WriteValue ( const T & value,
const uint8_t & size )
inline
392022 {
392023 const uint8_t bytes = (size >> 3) + ((size & 7) != 0);
392024 if (!EMPTY) {
392025 memcpy((void *)(buffer + index), &value, bytes);
392026 }
392027 index += bytes;
392028 }

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