QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
Wire::detail Namespace Reference

Classes

struct  MemberPointer
struct  MemberPointer< Value Class::* >

Functions

template<typename T>
constexpr std::size_t wireSize ()
template<typename Value>
constexpr void read (Value &value, std::span< const uint8_t > bytes, std::size_t offset)
template<typename Value>
constexpr void write (std::span< uint8_t > bytes, std::size_t offset, const Value &value)

Function Documentation

◆ read()

template<typename Value>
void Wire::detail::read ( Value & value,
std::span< const uint8_t > bytes,
std::size_t offset )
constexpr

Definition at line 87 of file WireFields.h.

References LittleEndian::read(), read(), Wire::VALID_LAYOUT, and wireSize().

Referenced by Wire::decode(), and read().

◆ wireSize()

template<typename T>
std::size_t Wire::detail::wireSize ( )
constexpr

Definition at line 42 of file WireFields.h.

References Wire::SIZE, and wireSize().

Referenced by read(), wireSize(), and write().

◆ write()

template<typename Value>
void Wire::detail::write ( std::span< uint8_t > bytes,
std::size_t offset,
const Value & value )
constexpr

Definition at line 107 of file WireFields.h.

References Wire::VALID_LAYOUT, wireSize(), LittleEndian::write(), and write().

Referenced by Wire::encode(), and write().