libsent/src/util/endian.c File Reference

Byte order swapping. More...

#include <sent/stddefs.h>

Include dependency graph for endian.c:

Go to the source code of this file.

Functions

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


Detailed Description

Byte order swapping.

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

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 34 of file endian.c.

Referenced by myread(), mywrite(), rdn(), read_param(), and wrt().

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 58 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 26 12:55:08 2006 for Julian by  doxygen 1.5.0