GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
byte-swap.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static void swap_bytes (void *ptr, unsigned int i, unsigned int j)
 
template<int n>
void swap_bytes (void *ptr)
 
template<int n>
void swap_bytes (void *ptr, int len)
 
template<>
void swap_bytes< 1 > (void *)
 
template<>
void swap_bytes< 1 > (void *, int)
 
template<>
void swap_bytes< 2 > (void *ptr)
 
template<>
void swap_bytes< 4 > (void *ptr)
 
template<>
void swap_bytes< 8 > (void *ptr)
 

Function Documentation

static void swap_bytes ( void *  ptr,
unsigned int  i,
unsigned int  j 
)
inlinestatic

Definition at line 27 of file byte-swap.h.

Referenced by swap_bytes(), swap_bytes< 2 >(), swap_bytes< 4 >(), and swap_bytes< 8 >().

template<int n>
void swap_bytes ( void *  ptr)

Definition at line 38 of file byte-swap.h.

References swap_bytes().

template<int n>
void swap_bytes ( void *  ptr,
int  len 
)

Definition at line 77 of file byte-swap.h.

template<>
void swap_bytes< 1 > ( void *  )
inline

Definition at line 46 of file byte-swap.h.

template<>
void swap_bytes< 1 > ( void *  ,
int   
)
inline

Definition at line 90 of file byte-swap.h.

template<>
void swap_bytes< 2 > ( void *  ptr)
inline
template<>
void swap_bytes< 4 > ( void *  ptr)
inline
template<>
void swap_bytes< 8 > ( void *  ptr)
inline