GNU Octave  9.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"

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)
 
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/2]

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

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

References n.

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

◆ swap_bytes() [2/2]

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< 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 >()