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

Public Member Functions

template<>
duckdb::string_t Operation (string_t input, Vector &vector)
template<>
string_t Operation (string_t input, Vector &vector)

Static Public Member Functions

template<class SRC>
static string_t Operation (SRC input, Vector &result)

Member Function Documentation

◆ Operation() [1/2]

template<class SRC>
string_t duckdb::CastFromType::Operation ( SRC input,
Vector & result )
inlinestatic
32275 {
32276 throw duckdb::NotImplementedException("Cast from pointer could not be performed!");
32277 }

◆ Operation() [2/2]

template<>
string_t duckdb::CastFromType::Operation ( string_t input,
Vector & vector )
90067 {
90068 MemoryStream stream(data_ptr_cast(input.GetDataWriteable()), input.GetSize());
90069 BinaryDeserializer deserializer(stream);
90070 try {
90071 auto type = LogicalType::Deserialize(deserializer);
90072 return StringVector::AddString(vector, type.ToString());
90073 } catch (std::exception &ex) {
90074 // TODO: Format better error here?
90075 return StringVector::AddString(vector, ex.what());
90076 }
90077}
static DUCKDB_API string_t AddString(Vector &vector, const char *data, idx_t len)
Add a string to the string heap of the vector (auxiliary data).
Definition duckdb.cpp:137889

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