GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
byte-swap.h File Reference
#include "octave-config.h"
Include dependency graph for byte-swap.h:
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

◆ swap_bytes() [1/3]

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

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

References i, t, and tmp.

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

◆ swap_bytes() [2/3]

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

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

References i, and swap_bytes().

◆ swap_bytes() [3/3]

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

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

References i, and t.

◆ swap_bytes< 1 >() [1/2]

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

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

◆ swap_bytes< 1 >() [2/2]

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

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

◆ swap_bytes< 2 >()

◆ swap_bytes< 4 >()

◆ swap_bytes< 8 >()