WPILibC++ 2024.1.1-beta-4
wpi::Struct< bool > Struct Reference

Raw struct support for boolean values. More...

#include <wpi/struct/Struct.h>

Static Public Member Functions

static constexpr std::string_view GetTypeString ()
 
static constexpr size_t GetSize ()
 
static constexpr std::string_view GetSchema ()
 
static bool Unpack (std::span< const uint8_t > data)
 
static void Pack (std::span< uint8_t > data, bool value)
 

Detailed Description

Raw struct support for boolean values.

Primarily useful for higher level struct implementations.

Member Function Documentation

◆ GetSchema()

static constexpr std::string_view wpi::Struct< bool >::GetSchema ( )
inlinestaticconstexpr

◆ GetSize()

static constexpr size_t wpi::Struct< bool >::GetSize ( )
inlinestaticconstexpr

◆ GetTypeString()

static constexpr std::string_view wpi::Struct< bool >::GetTypeString ( )
inlinestaticconstexpr

◆ Pack()

static void wpi::Struct< bool >::Pack ( std::span< uint8_t >  data,
bool  value 
)
inlinestatic

◆ Unpack()

static bool wpi::Struct< bool >::Unpack ( std::span< const uint8_t >  data)
inlinestatic

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