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

Public Member Functions

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

Static Public Member Functions

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

Member Function Documentation

◆ Operation() [1/4]

template<class SRC, class DST>
bool duckdb::TryCastBlobToUUID::Operation ( SRC input,
DST & result,
Vector & result_vector,
CastParameters & parameters )
inlinestatic
32232 {
32233 throw InternalException("Unsupported type for try cast blob to uuid");
32234 }

◆ Operation() [2/4]

template<class SRC, class DST>
bool duckdb::TryCastBlobToUUID::Operation ( SRC input,
DST & result,
bool strict )
inlinestatic
32236 {
32237 throw InternalException("Unsupported type for try cast blob to uuid");
32238 }

◆ Operation() [3/4]

template<>
bool duckdb::TryCastBlobToUUID::Operation ( string_t input,
hugeint_t & result,
Vector & result_vector,
CastParameters & parameters )
90185 {
90186 // BLOB must be exactly 16 bytes for UUID
90187 if (input.GetSize() != 16) {
90188 HandleCastError::AssignError("BLOB must be exactly 16 bytes to convert to UUID", parameters);
90189 return false;
90190 }
90191
90192 auto data = const_data_ptr_cast(input.GetData());
90193
90194 // Use the utility function from BaseUUID
90195 result = BaseUUID::FromBlob(data);
90196
90197 return true;
90198}
static hugeint_t FromBlob(const_data_ptr_t input)
Convert 16-byte binary data to UUID (hugeint_t).
Definition duckdb.cpp:131094

◆ Operation() [4/4]

template<>
bool duckdb::TryCastBlobToUUID::Operation ( string_t input,
hugeint_t & result,
bool strict )
90201 {
90202 // BLOB must be exactly 16 bytes for UUID
90203 if (input.GetSize() != 16) {
90204 return false;
90205 }
90206
90207 auto data = const_data_ptr_cast(input.GetData());
90208
90209 // Use the utility function from BaseUUID
90210 result = BaseUUID::FromBlob(data);
90211
90212 return true;
90213}

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