KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
l_cpp_bits.h File Reference
#include <l/l_bits.h>
#include <l_cpp/l_exception.h>

Go to the source code of this file.

Namespaces

 kjb
 Classes and functions for dealing with trajectory files.
 

Functions

template<int NUM_BYTES>
void kjb::swap_bytes_dispatch (void *)
 Swap the byte-order of a value. More...
 
template<>
void kjb::swap_bytes_dispatch< 2 > (void *value)
 swap the byte order of a 16-bit value (do not call directly). More...
 
template<>
void kjb::swap_bytes_dispatch< 4 > (void *value)
 swap the byte order of a 32-bit value (do not call directly). More...
 
template<>
void kjb::swap_bytes_dispatch< 8 > (void *value)
 swap the byte order of a 64-bit value (do not call directly). More...
 
template<class T >
void kjb::swap_bytes (T *value)
 
template<class T >
void kjb::swap_bytes (T &value)
 
template<class T >
void kjb::swap_array_bytes (T *array, size_t N)