fpmas 1.5
Static Public Member Functions | List of all members
fpmas::io::datapack::Serializer< synchro::hard::api::Color > Struct Reference

#include <enums.h>

Static Public Member Functions

template<typename PackType >
static std::size_t size (const PackType &p)
 
template<typename PackType >
static std::size_t size (const PackType &p, const synchro::hard::api::Color &)
 
template<typename PackType >
static void to_datapack (PackType &pack, const synchro::hard::api::Color &color)
 
template<typename PackType >
static synchro::hard::api::Color from_datapack (const PackType &pack)
 

Detailed Description

Color base_io specialization.

Member Function Documentation

◆ size() [1/2]

template<typename PackType >
static std::size_t fpmas::io::datapack::Serializer< synchro::hard::api::Color >::size ( const PackType &  p)
inlinestatic

Returns the buffer size, in bytes, required to serialize a Color instance in p, i.e. p.size<int>().

◆ size() [2/2]

template<typename PackType >
static std::size_t fpmas::io::datapack::Serializer< synchro::hard::api::Color >::size ( const PackType &  p,
const synchro::hard::api::Color  
)
inlinestatic

Equivalent to size().

◆ to_datapack()

template<typename PackType >
static void fpmas::io::datapack::Serializer< synchro::hard::api::Color >::to_datapack ( PackType &  pack,
const synchro::hard::api::Color color 
)
inlinestatic

Writes color to the pack buffer.

Parameters
packdestination BasicObjectPack
colorColor to serialize

◆ from_datapack()

template<typename PackType >
static synchro::hard::api::Color fpmas::io::datapack::Serializer< synchro::hard::api::Color >::from_datapack ( const PackType &  pack)
inlinestatic

Reads a Color from the pack buffer.

Parameters
packsource BasicObjectPack
Returns
unserialized Color

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