13template <
int Size,
int Options,
int MaxRows,
int MaxCols>
19 static constexpr size_t GetSize() {
return Size * 8; }
26 std::span<const uint8_t> data) {
27 constexpr size_t kDataOff = 0;
31 for (
int i = 0; i < Size; i++) {
38 std::span<uint8_t> data,
40 constexpr size_t kDataOff = 0;
42 for (
int i = 0; i < Size; i++) {
43 vec_data[i] = value(i);
This class is a wrapper around std::array that does compile time size checking.
Definition array.hpp:26
Specifies that a type is capable of raw struct serialization and deserialization.
Definition Struct.hpp:69
Eigen::Matrix< double, Rows, Cols, Options, MaxRows, MaxCols > Matrixd
Definition EigenCore.hpp:21
constexpr empty_array_t empty_array
Definition array.hpp:16
void PackStructArray(std::span< uint8_t > data, const wpi::util::array< T, N > &arr)
Pack a serialized struct array starting at a given offset within the data.
Definition Struct.hpp:234
constexpr auto NumToCtString()
Converts any integral to a ct_string at compile-time.
Definition ct_string.hpp:202
constexpr auto Concat(ct_string< Char, Traits, N1 > const &s1, ct_string< Char, Traits, N > const &... s)
Concatenates multiple fixed_strings into a larger fixed_string at compile time.
Definition ct_string.hpp:168
wpi::util::array< T, N > UnpackStructArray(std::span< const uint8_t > data)
Unpack a serialized struct array starting at a given offset within the data.
Definition Struct.hpp:172
Definition CvSource.hpp:15
static constexpr std::string_view GetSchema()
Definition VectorStruct.hpp:23
static wpi::math::Matrixd< Size, 1, Options, MaxRows, MaxCols > Unpack(std::span< const uint8_t > data)
Definition VectorStruct.hpp:25
static constexpr std::string_view GetTypeName()
Definition VectorStruct.hpp:18
static constexpr size_t GetSize()
Definition VectorStruct.hpp:19
static constexpr ct_string kTypeName
Definition VectorStruct.hpp:16
static constexpr ct_string kSchema
Definition VectorStruct.hpp:20
static void Pack(std::span< uint8_t > data, const wpi::math::Matrixd< Size, 1, Options, MaxRows, MaxCols > &value)
Definition VectorStruct.hpp:37
Struct serialization template.
Definition Struct.hpp:39
Fixed length string (array of character) for compile time use.
Definition ct_string.hpp:29