WPILibC++ 2024.3.2
wpi::Struct< std::array< T, N >, I... > Struct Template Reference

Raw struct support for fixed-size arrays of other structs. More...

#include <wpi/struct/Struct.h>

Static Public Member Functions

static constexpr auto GetTypeString (const I &... info)
 
static constexpr size_t GetSize (const I &... info)
 
static constexpr auto GetSchema (const I &... info)
 
static std::array< T, N > Unpack (std::span< const uint8_t > data, const I &... info)
 
static void Pack (std::span< uint8_t > data, std::span< const T, N > values, const I &... info)
 
static void UnpackInto (std::array< T, N > *out, std::span< const uint8_t > data, const I &... info)
 
static void UnpackInto (std::span< T, N > out, std::span< const uint8_t > data, const I &... info)
 

Detailed Description

template<typename T, size_t N, typename... I>
requires StructSerializable<T, I...>
struct wpi::Struct< std::array< T, N >, I... >

Raw struct support for fixed-size arrays of other structs.

Member Function Documentation

◆ GetSchema()

template<typename T , size_t N, typename... I>
static constexpr auto wpi::Struct< std::array< T, N >, I... >::GetSchema ( const I &...  info)
inlinestaticconstexpr

◆ GetSize()

template<typename T , size_t N, typename... I>
static constexpr size_t wpi::Struct< std::array< T, N >, I... >::GetSize ( const I &...  info)
inlinestaticconstexpr

◆ GetTypeString()

template<typename T , size_t N, typename... I>
static constexpr auto wpi::Struct< std::array< T, N >, I... >::GetTypeString ( const I &...  info)
inlinestaticconstexpr

◆ Pack()

template<typename T , size_t N, typename... I>
static void wpi::Struct< std::array< T, N >, I... >::Pack ( std::span< uint8_t >  data,
std::span< const T, N >  values,
const I &...  info 
)
inlinestatic

◆ Unpack()

template<typename T , size_t N, typename... I>
static std::array< T, N > wpi::Struct< std::array< T, N >, I... >::Unpack ( std::span< const uint8_t >  data,
const I &...  info 
)
inlinestatic

◆ UnpackInto() [1/2]

template<typename T , size_t N, typename... I>
static void wpi::Struct< std::array< T, N >, I... >::UnpackInto ( std::array< T, N > *  out,
std::span< const uint8_t >  data,
const I &...  info 
)
inlinestatic

◆ UnpackInto() [2/2]

template<typename T , size_t N, typename... I>
static void wpi::Struct< std::array< T, N >, I... >::UnpackInto ( std::span< T, N >  out,
std::span< const uint8_t >  data,
const I &...  info 
)
inlinestatic

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