WPILibC++ 2024.3.2
wpi::Struct< float > Struct Reference

Raw struct support for float 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 float Unpack (std::span< const uint8_t > data)
 
static void Pack (std::span< uint8_t > data, float value)
 

Detailed Description

Raw struct support for float values.

Primarily useful for higher level struct implementations.

Member Function Documentation

◆ GetSchema()

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

◆ GetSize()

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

◆ GetTypeString()

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

◆ Pack()

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

◆ Unpack()

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

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