26 #if ! defined (octave_byte_swap_h)
27 #define octave_byte_swap_h 1
29 #include "octave-config.h"
32 swap_bytes (
void *ptr,
unsigned int i,
unsigned int j)
34 char *t =
static_cast<char *
> (ptr);
45 for (
int i = 0; i <
n/2; i++)
83 char *t =
static_cast<char *
> (ptr);
85 for (
int i = 0; i <
len; i++)
void swap_bytes< 2 >(void *ptr)
void swap_bytes< 8 >(void *ptr)
void swap_bytes< 4 >(void *ptr)
void swap_bytes(void *ptr)
void swap_bytes< 1 >(void *)