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

Static Public Member Functions

static void ArrowToDuck (ClientContext &context, Vector &source, Vector &result, idx_t count)
 
static void DuckToArrow (ClientContext &context, Vector &source, Vector &result, idx_t count)
 

Member Function Documentation

◆ ArrowToDuck()

static void duckdb::ArrowBool8::ArrowToDuck ( ClientContext context,
Vector source,
Vector result,
idx_t  count 
)
inlinestatic
45319 {
45320 auto source_ptr = reinterpret_cast<int8_t *>(FlatVector::GetData(source));
45321 auto result_ptr = reinterpret_cast<bool *>(FlatVector::GetData(result));
45322 for (idx_t i = 0; i < count; i++) {
45323 result_ptr[i] = source_ptr[i];
45324 }
45325 }
::int8_t int8_t

◆ DuckToArrow()

static void duckdb::ArrowBool8::DuckToArrow ( ClientContext context,
Vector source,
Vector result,
idx_t  count 
)
inlinestatic
45326 {
45327 UnifiedVectorFormat format;
45328 source.ToUnifiedFormat(count, format);
45329 FlatVector::SetValidity(result, format.validity);
45330 auto source_ptr = reinterpret_cast<bool *>(format.data);
45331 auto result_ptr = reinterpret_cast<int8_t *>(FlatVector::GetData(result));
45332 for (idx_t i = 0; i < count; i++) {
45333 if (format.validity.RowIsValid(i)) {
45334 result_ptr[i] = static_cast<int8_t>(source_ptr[i]);
45335 }
45336 }
45337 }

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