GNU Octave  8.1.0
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

template<int n>
void swap_bytes (void *ptr)
 
template<int n>
void swap_bytes (void *ptr, int len)
 
static void swap_bytes (void *ptr, unsigned int i, unsigned int j)
 
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]

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

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

References n, and swap_bytes().

◆ swap_bytes() [2/3]

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

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

References len, and n.

◆ swap_bytes() [3/3]

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

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

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

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

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

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

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

◆ swap_bytes< 2 >()

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

◆ swap_bytes< 4 >()

◆ swap_bytes< 8 >()