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

Public Member Functions

template<>
bool Operation (string_t input, bool &result, CastParameters &parameters)
 
template<>
bool Operation (string_t input, hugeint_t &result, CastParameters &parameters)
 
template<>
bool Operation (string_t input, uhugeint_t &result, CastParameters &parameters)
 

Static Public Member Functions

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

Member Function Documentation

◆ Operation()

template<class SRC = string_t, class DST >
static bool duckdb::CastFromBitToNumeric::Operation ( SRC  input,
DST result,
CastParameters parameters 
)
inlinestatic
32160 {
32161 D_ASSERT(input.GetSize() > 1);
32162
32163 // TODO: Allow conversion if the significant bytes of the bitstring can be cast to the target type
32164 // Currently only allows bitstring -> numeric if the full bitstring fits inside the numeric type
32165 if (input.GetSize() - 1 > sizeof(DST)) {
32166 throw ConversionException(parameters.query_location, "Bitstring doesn't fit inside of %s",
32167 GetTypeId<DST>());
32168 }
32169 Bit::BitToNumeric(input, result);
32170 return (true);
32171 }
static void BitToNumeric(bitstring_t bit, T &output_num)
bit is expected to fit inside of output num (bit size <= sizeof(T) + 1)
Definition duckdb.cpp:31142

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