libsent/src/util/endian.c File Reference

Byte order swapping. More...

#include <sent/stddefs.h>

Go to the source code of this file.

Functions

void swap_bytes (char *buf, size_t unitbyte, int unitnum)
 Generic byte-swapping functions for any size of unit.
void swap_sample_bytes (SP16 *buf, int len)
 Byte swapping of 16bit audio samples.


Detailed Description

Byte order swapping.

Author:
Akinobu LEE
Date:
Thu Feb 17 15:43:46 2005
Revision
1.1.1.1

Definition in file endian.c.


Function Documentation

void swap_bytes ( char *  buf,
size_t  unitbyte,
int  unitnum 
)

Generic byte-swapping functions for any size of unit.

Parameters:
buf [i/o] data buffer
unitbyte [in] size of unit in bytes
unitnum [in] number of unit in the buffer

Definition at line 35 of file endian.c.

Referenced by myread(), mywrite(), rdnfunc(), read_param(), and wrtfunc().

void swap_sample_bytes ( SP16 buf,
int  len 
)

Byte swapping of 16bit audio samples.

Parameters:
buf [i/o] data buffer
len [in] length of above

Definition at line 59 of file endian.c.

Referenced by adin_file_read(), adin_mic_read(), adin_stdin_read(), adin_tcpip_read(), NA_read(), and wrsamp().


Generated on Tue Dec 18 16:01:40 2007 for Julius by  doxygen 1.5.4