libmicroemu 0.2.0
ARM Microcontroller Emulator Library
Loading...
Searching...
No Matches
libmicroemu::internal::LittleToLittleEndianConverter Class Reference

This class contains a function to convert the endianess from little to little endian. More...

#include <endianess_converters.h>

Public Member Functions

template<>
constexpr u8 Convert (const u8 &value)
 Specialization for converting a u8 value from little to little endian representation.
 

Static Public Member Functions

template<typename T>
static constexpr T Convert (const T &value)=delete
 Converts an arbitrary value from little endian to little endian representation.
 
template<>
constexpr u16 Convert (const u16 &value)
 Specialization for converting a u16 value from little to little endian representation.
 
template<>
constexpr u32 Convert (const u32 &value)
 Specialization for converting a u32 value from little to little endian representation.
 
template<>
constexpr u64 Convert (const u64 &value)
 Specialization for converting a u64 value from little to little endian representation.
 

Detailed Description

This class contains a function to convert the endianess from little to little endian.

For obvious reasons the mentioned conversion does nothing.

Member Function Documentation

◆ Convert() [1/5]

template<typename T>
static constexpr T libmicroemu::internal::LittleToLittleEndianConverter::Convert ( const T & value)
inlinestaticconstexprdelete

Converts an arbitrary value from little endian to little endian representation.

For obvious reasons the mentioned conversion does nothing.

Template Parameters
TThe type of the value to be converted.
Parameters
valueThe value to be converted from little endian to little endian representation.
Returns
T the converted value

◆ Convert() [2/5]

template<>
u16 libmicroemu::internal::LittleToLittleEndianConverter::Convert ( const u16 & value)
inlinestaticconstexpr

Specialization for converting a u16 value from little to little endian representation.

Parameters
valueThe value to be converted from little endian to little endian representation.

◆ Convert() [3/5]

template<>
u32 libmicroemu::internal::LittleToLittleEndianConverter::Convert ( const u32 & value)
inlinestaticconstexpr

Specialization for converting a u32 value from little to little endian representation.

Parameters
valueThe value to be converted from little endian to little endian representation.

◆ Convert() [4/5]

template<>
u64 libmicroemu::internal::LittleToLittleEndianConverter::Convert ( const u64 & value)
inlinestaticconstexpr

Specialization for converting a u64 value from little to little endian representation.

Parameters
valueThe value to be converted from little endian to little endian representation.

◆ Convert() [5/5]

template<>
u8 libmicroemu::internal::LittleToLittleEndianConverter::Convert ( const u8 & value)
inlineconstexpr

Specialization for converting a u8 value from little to little endian representation.

Parameters
valueThe value to be converted from little endian to little endian representation.

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