Intrusive Containers
Functions
Endian Namespace Reference

Functions

int16_t get16LE (void const *buffer)
 
uint16_t getU16LE (void const *buffer)
 
int32_t get32LE (void const *buffer)
 
uint32_t getU32LE (void const *buffer)
 
float getFloatLE (void const *buffer)
 
double getDoubleLE (void const *buffer)
 
int16_t get16BE (void const *buffer)
 
uint16_t getU16BE (void const *buffer)
 
int32_t get32BE (void const *buffer)
 
uint32_t getU32BE (void const *buffer)
 
float getFloatBE (void const *buffer)
 
double getDouble (void const *buffer)
 

Detailed Description

A namespace to isolate these functions.

Function Documentation

int16_t Endian::get16BE ( void const *  buffer)
inline

Get 16 Bit Big Endian Value.

Parameters
bufferBuffer to fetch the value from.
Returns
16 bit signed integer from buffer.
int16_t Endian::get16LE ( void const *  buffer)
inline

Get 16 Bit Little Endian Value.

Parameters
bufferBuffer to fetch the value from.
Returns
16 bit signed integer from buffer.
int32_t Endian::get32BE ( void const *  buffer)
inline

Get 32 Bit Big Endian Value.

Parameters
bufferBuffer to fetch the value from.
Returns
32 bit signed integer from buffer.
int32_t Endian::get32LE ( void const *  buffer)
inline

Get 32 Bit Little Endian Value.

Parameters
bufferBuffer to fetch the value from.
Returns
32 bit signed integer from buffer.
double Endian::getDouble ( void const *  buffer)
inline

Get Double Presision Floating Big Endian Value.

This assume that the floating point is stored in same basic format, with possible endian swap.

Parameters
bufferBuffer to fetch the value from.
Returns
double from buffer.
double Endian::getDoubleLE ( void const *  buffer)
inline

Get Double Presision Floating Little Endian Value.

This assume that the floating point is stored in same basic format, with possible endian swap.

Parameters
bufferBuffer to fetch the value from.
Returns
double from buffer.
float Endian::getFloatBE ( void const *  buffer)
inline

Get Single Presision Floating Big Endian Value.

This assume that the floating point is stored in same basic format, with possible endian swap.

Parameters
bufferBuffer to fetch the value from.
Returns
float from buffer.
float Endian::getFloatLE ( void const *  buffer)
inline

Get Single Presision Floating Little Endian Value.

This assume that the floating point is stored in same basic format, with possible endian swap.

Parameters
bufferBuffer to fetch the value from.
Returns
float from buffer.
uint16_t Endian::getU16BE ( void const *  buffer)
inline

Get 16 Bit Big Endian Value.

Parameters
bufferBuffer to fetch the value from.
Returns
16 bit unsigned integer from buffer.
uint16_t Endian::getU16LE ( void const *  buffer)
inline

Get 16 Bit Little Endian Value.

Parameters
bufferBuffer to fetch the value from.
Returns
16 bit unsigned integer from buffer.
uint32_t Endian::getU32BE ( void const *  buffer)
inline

Get 32 Bit Big Endian Value.

Parameters
bufferBuffer to fetch the value from.
Returns
32 bit unsigned integer from buffer.
uint32_t Endian::getU32LE ( void const *  buffer)
inline

Get 32 Bit Little Endian Value.

Parameters
bufferBuffer to fetch the value from.
Returns
32 bit unsigned integer from buffer.