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

Public Member Functions

template<>
bool Operation (string_t input, string_t &result, Vector &result_vector, CastParameters &parameters)
template<>
bool Operation (string_t input, string_t &result, Vector &result_vector, CastParameters &parameters)

Static Public Member Functions

template<class SRC, class DST>
static bool Operation (SRC input, DST &result, Vector &result_vector, CastParameters &parameters)

Member Function Documentation

◆ Operation() [1/2]

template<class SRC, class DST>
bool duckdb::TryCastToBlob::Operation ( SRC input,
DST & result,
Vector & result_vector,
CastParameters & parameters )
inlinestatic
32139 {
32140 throw InternalException("Unsupported type for try cast to blob");
32141 }

◆ Operation() [2/2]

template<>
bool duckdb::TryCastToBlob::Operation ( string_t input,
string_t & result,
Vector & result_vector,
CastParameters & parameters )
90083 {
90084 idx_t result_size;
90085 if (!Blob::TryGetBlobSize(input, result_size, parameters)) {
90086 return false;
90087 }
90088
90089 result = StringVector::EmptyString(result_vector, result_size);
90090 Blob::ToBlob(input, data_ptr_cast(result.GetDataWriteable()));
90091 result.Finalize();
90092 return true;
90093}
static DUCKDB_API bool TryGetBlobSize(string_t str, idx_t &result_size, CastParameters &parameters)
Returns the blob size of a string -> blob conversion.
Definition duckdb.cpp:113182
static DUCKDB_API void ToBlob(string_t str, data_ptr_t output)
Convert a string to a blob. This function should ONLY be called after calling GetBlobSize,...
Definition duckdb.cpp:113232
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
static DUCKDB_API string_t EmptyString(Vector &vector, idx_t len)
Definition duckdb.cpp:137942

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