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::BaseUUID Class Reference

The BaseUUID class contains UUID related common and util functions. More...

#include <duckdb.hpp>

Inheritance diagram for duckdb::BaseUUID:

Static Public Member Functions

static bool FromString (const string &str, hugeint_t &result, bool strict=false)
 Convert a uuid string to a hugeint object.
 
static bool FromCString (const char *str, idx_t len, hugeint_t &result)
 Convert a uuid string to a hugeint object.
 
static void ToString (hugeint_t input, char *buf)
 Convert a hugeint object to a uuid style string.
 
static hugeint_t FromUHugeint (uhugeint_t input)
 Convert a uhugeint_t object to a uuid value.
 
static uhugeint_t ToUHugeint (hugeint_t input)
 Convert a uuid value to a uhugeint_t object.
 
static hugeint_t FromBlob (const_data_ptr_t input)
 Convert 16-byte binary data to UUID (hugeint_t)
 
static void ToBlob (hugeint_t input, data_ptr_t output)
 Convert UUID (hugeint_t) to 16-byte binary data.
 
static string ToString (hugeint_t input)
 Convert a hugeint object to a uuid style string.
 
static hugeint_t FromString (const string &str)
 

Static Public Attributes

static constexpr const uint8_t STRING_SIZE = 36
 

Static Protected Member Functions

static hugeint_t Convert (const std::array< uint8_t, 16 > &bytes)
 Util function, which converts uint8_t array to hugeint_t.
 

Detailed Description

The BaseUUID class contains UUID related common and util functions.

Member Function Documentation

◆ FromCString()

static bool duckdb::BaseUUID::FromCString ( const char str,
idx_t  len,
hugeint_t result 
)
inlinestatic

Convert a uuid string to a hugeint object.

57421 {
57422 return FromString(string(str, 0, len), result);
57423 }
static bool FromString(const string &str, hugeint_t &result, bool strict=false)
Convert a uuid string to a hugeint object.
Here is the call graph for this function:

◆ ToString()

static string duckdb::BaseUUID::ToString ( hugeint_t  input)
inlinestatic

Convert a hugeint object to a uuid style string.

57438 {
57439 char buff[STRING_SIZE];
57440 ToString(input, buff);
57441 return string(buff, STRING_SIZE);
57442 }
static void ToString(hugeint_t input, char *buf)
Convert a hugeint object to a uuid style string.

◆ FromString()

static hugeint_t duckdb::BaseUUID::FromString ( const string &  str)
inlinestatic
57444 {
57445 hugeint_t result;
57446 FromString(str, result);
57447 return result;
57448 }

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