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::CStringConverter Struct Reference

Static Public Member Functions

template<class SRC, class DST>
static DST Convert (SRC input)
template<class DST>
static void NullConvert (DST &target)

Member Function Documentation

◆ Convert()

template<class SRC, class DST>
DST duckdb::CStringConverter::Convert ( SRC input)
inlinestatic
269758 {
269759 auto result = char_ptr_cast(duckdb_malloc(input.GetSize() + 1));
269760 assert(result);
269761 memcpy((void *)result, input.GetData(), input.GetSize());
269762 auto write_arr = char_ptr_cast(result);
269763 write_arr[input.GetSize()] = '\0';
269764 return result;
269765 }
void * duckdb_malloc(size_t size)
Definition duckdb.cpp:268084
#define assert(x)
Definition duckdb.cpp:486071

◆ NullConvert()

template<class DST>
void duckdb::CStringConverter::NullConvert ( DST & target)
inlinestatic
269768 {
269769 target = nullptr;
269770 }

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