HOG2
Functions
SwapEndian.h File Reference
#include <stdint.h>
Include dependency graph for SwapEndian.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static bool is_little ()
 
uint16_t swap_endian16 (uint16_t x)
 
uint32_t swap_endian32 (uint32_t x)
 
uint64_t swap_endian64 (uint64_t x)
 
void little2machine (uint16_t &x)
 
void little2machine (uint32_t &x)
 
void little2machine (float &x)
 
void little2machine (double &x)
 

Function Documentation

◆ is_little()

static bool is_little ( )
inlinestatic

Definition at line 15 of file SwapEndian.h.

Referenced by little2machine().

◆ little2machine() [1/4]

void little2machine ( double &  x)
inline

Definition at line 64 of file SwapEndian.h.

References is_little(), and swap_endian64().

◆ little2machine() [2/4]

void little2machine ( float &  x)
inline

Definition at line 49 of file SwapEndian.h.

References is_little(), and swap_endian32().

◆ little2machine() [3/4]

void little2machine ( uint16_t &  x)
inline

◆ little2machine() [4/4]

void little2machine ( uint32_t &  x)
inline

Definition at line 43 of file SwapEndian.h.

References is_little(), and swap_endian32().

◆ swap_endian16()

uint16_t swap_endian16 ( uint16_t  x)
inline

Definition at line 20 of file SwapEndian.h.

Referenced by little2machine().

◆ swap_endian32()

uint32_t swap_endian32 ( uint32_t  x)
inline

Definition at line 25 of file SwapEndian.h.

Referenced by little2machine().

◆ swap_endian64()

uint64_t swap_endian64 ( uint64_t  x)
inline

Definition at line 31 of file SwapEndian.h.

Referenced by little2machine().