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::TryCastToBit 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::TryCastToBit::Operation ( SRC input,
DST & result,
Vector & result_vector,
CastParameters & parameters )
inlinestatic
32190 {
32191 throw InternalException("Unsupported type for try cast to bit");
32192 }

◆ Operation() [2/2]

template<>
bool duckdb::TryCastToBit::Operation ( string_t input,
string_t & result,
Vector & result_vector,
CastParameters & parameters )
90099 {
90100 idx_t result_size;
90101 if (!Bit::TryGetBitStringSize(input, result_size, parameters.error_message)) {
90102 return false;
90103 }
90104
90105 result = StringVector::EmptyString(result_vector, result_size);
90106 Bit::ToBit(input, result);
90107 result.Finalize();
90108 return true;
90109}
static DUCKDB_API void ToBit(string_t str, bitstring_t &output)
Definition duckdb.cpp:112794
static DUCKDB_API bool TryGetBitStringSize(string_t str, idx_t &result_size, string *error_message)
Returns the bit size of a string -> bit conversion.
Definition duckdb.cpp:112771
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: