NPL
Neurological Programs and Libraries
byteswap.h File Reference
#include <stdexcept>
#include "npltypes.h"

Go to the source code of this file.

Classes

union  npl::Bytes< T >
 

Namespaces

 npl
 

Functions

template<typename T >
union npl::Bytes npl::__attribute__ ((packed))
 
bool npl::little_endian ()
 
bool npl::big_endian ()
 
template<typename T >
void npl::swap (T *val)
 
template<>
void npl::swap< signed char > (signed char *val)
 
template<>
void npl::swap< char > (char *val)
 
template<>
void npl::swap< uint8_t > (uint8_t *val)
 
template<>
void npl::swap< cquad_t > (cquad_t *val)
 
template<>
void npl::swap< cdouble_t > (cdouble_t *val)
 
template<>
void npl::swap< cfloat_t > (cfloat_t *val)
 
template<>
void npl::swap< rgba_t > (rgba_t *val)
 
template<>
void npl::swap< rgb_t > (rgb_t *val)
 

Variables

iv
 
unsigned char bytes [sizeof(T)]
 

Variable Documentation

unsigned char bytes[sizeof(T)]

Definition at line 213 of file byteswap.h.

T iv

Definition at line 212 of file byteswap.h.