Main Page | Modules | Class List | File List | Class Members | File Members

I/O Dependent on Endian-ness of Architecture
[Common]


Functions

Gan_Bool gan_fread_lendian_i16 (FILE *fp, gan_int16 *ai16, size_t nitems)
 Reads an array of signed 16-bit integers from a file.
Gan_Bool gan_fwrite_lendian_i16 (FILE *fp, gan_int16 *ai16, size_t nitems)
 Writes an array of signed 16-bit integers to a file.
Gan_Bool gan_fread_lendian_ui16 (FILE *fp, gan_uint16 *aui16, size_t nitems)
 Reads an array of unsigned 16-bit integers from a file.
Gan_Bool gan_fwrite_lendian_ui16 (FILE *fp, gan_uint16 *aui16, size_t nitems)
 Writes an array of unsigned 16-bit integers to a file.
Gan_Bool gan_fread_lendian_i32 (FILE *fp, gan_int32 *ai32, size_t nitems)
 Reads an array of signed 32-bit integers from a file.
Gan_Bool gan_fwrite_lendian_i32 (FILE *fp, gan_int32 *ai32, size_t nitems)
 Writes an array of signed 32-bit integers to a file.
Gan_Bool gan_fread_lendian_ui32 (FILE *fp, gan_uint32 *aui32, size_t nitems)
 Reads an array of unsigned 32-bit integers from a file.
Gan_Bool gan_fwrite_lendian_ui32 (FILE *fp, gan_uint32 *aui32, size_t nitems)
 Writes an array of unsigned 32-bit integers to a file.
Gan_Bool gan_fread_lendian_i64 (FILE *fp, gan_int64 *ai64, size_t nitems)
 Reads an array of signed 64-bit integers from a file.
Gan_Bool gan_fwrite_lendian_i64 (FILE *fp, gan_int64 *ai64, size_t nitems)
 Writes an array of signed 64-bit integers to a file.
Gan_Bool gan_fread_lendian_ui64 (FILE *fp, gan_uint64 *aui64, size_t nitems)
 Reads an array of unsigned 64-bit integers from a file.
Gan_Bool gan_fwrite_lendian_ui64 (FILE *fp, gan_uint64 *aui64, size_t nitems)
 Writes an array of unsigned 64-bit integers to a file.
Gan_Bool gan_fread_lendian_f32 (FILE *fp, gan_float32 *af32, size_t nitems)
 Reads an array of 32-bit floats from a file.
Gan_Bool gan_fwrite_lendian_f32 (FILE *fp, gan_float32 *af32, size_t nitems)
 Writes an array of 32-bit floats to a file.
Gan_Bool gan_fread_lendian_f64 (FILE *fp, gan_float64 *af64, size_t nitems)
 Reads an array of 64-bit floats from a file.
Gan_Bool gan_fwrite_lendian_f64 (FILE *fp, gan_float64 *af64, size_t nitems)
 Writes an array of 64-bit floats to a file.
Gan_Bool gan_fread_lendian_s (FILE *fp, short *as, size_t nitems)
 Macro: Reads an array of signed short integers from a file.
Gan_Bool gan_fwrite_lendian_s (FILE *fp, short *as, size_t nitems)
 Macro: Writes an array of signed short integers to a file.
Gan_Bool gan_fread_lendian_us (FILE *fp, unsigned short *aus, size_t nitems)
 Macro: Reads an array of unsigned short integers from a file.
Gan_Bool gan_fwrite_lendian_us (FILE *fp, unsigned short *aus, size_t nitems)
 Macro: Writes an array of unsigned short integers to a file.
Gan_Bool gan_fread_lendian_i (FILE *fp, int *ai, size_t nitems)
 Macro: Reads an array of signed integers from a file.
Gan_Bool gan_fwrite_lendian_i (FILE *fp, int *ai, size_t nitems)
 Macro: Writes an array of signed integers to a file.
Gan_Bool gan_fread_lendian_ui (FILE *fp, unsigned *aui, size_t nitems)
 Macro: Reads an array of unsigned integers from a file.
Gan_Bool gan_fwrite_lendian_ui (FILE *fp, unsigned *aui, size_t nitems)
 Macro: Writes an array of unsigned integers to a file.
Gan_Bool gan_fread_lendian_l (FILE *fp, long *al, size_t nitems)
 Macro: Reads an array of signed long integers from a file.
Gan_Bool gan_fwrite_lendian_l (FILE *fp, long *al, size_t nitems)
 Macro: Writes an array of signed long integers to a file.
Gan_Bool gan_fread_lendian_ul (FILE *fp, unsigned long *aul, size_t nitems)
 Macro: Reads an array of unsigned long integers from a file.
Gan_Bool gan_fwrite_lendian_ul (FILE *fp, unsigned long *aul, size_t nitems)
 Macro: Writes an array of unsigned long integers to a file.

Function Documentation

Gan_Bool gan_fread_lendian_f32 FILE *  fp,
gan_float32 *  af,
size_t  nitems
 

Reads an array of 32-bit floats from a file.

Parameters:
fp Pointer to a binary file opened for reading
af32 Array of floats
nitems The number of values to be read into the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Reads an array of 32-bit floats from a file in little-endian byte order.

Gan_Bool gan_fread_lendian_f64 FILE *  fp,
gan_float64 *  af64,
size_t  nitems
 

Reads an array of 64-bit floats from a file.

Parameters:
fp Pointer to a binary file opened for reading
af64 Array of 64-bit floats
nitems The number of values to be read into the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Reads an array of 64-bit floats from a file in little-endian byte order.

Gan_Bool gan_fread_lendian_i FILE *  fp,
int *  ai,
size_t  nitems
 

Macro: Reads an array of signed integers from a file.

Parameters:
fp Pointer to a binary file opened for reading
ai Array of integers
nitems The number of integers to be read into the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Reads an array of signed integers from a file.

Gan_Bool gan_fread_lendian_i16 FILE *  fp,
gan_int16 *  aui16,
size_t  nitems
 

Reads an array of signed 16-bit integers from a file.

Parameters:
fp Pointer to a binary file opened for reading
ai16 Array of integers
nitems The number of integers to be read into the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Reads an array of signed 16-bit integers from a file in little-endian byte order.

Gan_Bool gan_fread_lendian_i32 FILE *  fp,
gan_int32 *  aui32,
size_t  nitems
 

Reads an array of signed 32-bit integers from a file.

Parameters:
fp Pointer to a binary file opened for reading
ai32 Array of integers
nitems The number of integers to be read into the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Reads an array of signed 32-bit integers from a file in little-endian byte order.

Gan_Bool gan_fread_lendian_i64 FILE *  fp,
gan_int64 *  aui64,
size_t  nitems
 

Reads an array of signed 64-bit integers from a file.

Parameters:
fp Pointer to a binary file opened for reading
ai64 Array of integers
nitems The number of integers to be read into the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Reads an array of unsigned 64-bit integers from a file in little-endian byte order.

Gan_Bool gan_fread_lendian_l FILE *  fp,
long *  al,
size_t  nitems
 

Macro: Reads an array of signed long integers from a file.

Parameters:
fp Pointer to a binary file opened for reading
al Array of integers
nitems The number of integers to be read into the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Reads an array of signed long integers from a file.

Gan_Bool gan_fread_lendian_s FILE *  fp,
short *  as,
size_t  nitems
 

Macro: Reads an array of signed short integers from a file.

Parameters:
fp Pointer to a binary file opened for reading
as Array of integers
nitems The number of integers to be read into the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Reads an array of signed short integers from a file.

Gan_Bool gan_fread_lendian_ui FILE *  fp,
unsigned *  aui,
size_t  nitems
 

Macro: Reads an array of unsigned integers from a file.

Parameters:
fp Pointer to a binary file opened for reading
aui Array of integers
nitems The number of integers to be read into the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Reads an array of unsigned integers from a file.

Gan_Bool gan_fread_lendian_ui16 FILE *  fp,
gan_uint16 *  aui16,
size_t  nitems
 

Reads an array of unsigned 16-bit integers from a file.

Parameters:
fp Pointer to a binary file opened for reading
aui16 Array of integers
nitems The number of integers to be read into the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.

GAN_TRUE on success, GAN_FALSE on failure.

Reads an array of unsigned 16-bit integers from a file in little-endian byte order.

Gan_Bool gan_fread_lendian_ui32 FILE *  fp,
gan_uint32 *  aui32,
size_t  nitems
 

Reads an array of unsigned 32-bit integers from a file.

Parameters:
fp Pointer to a binary file opened for reading
aui32 Array of integers
nitems The number of integers to be read into the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Reads an array of unsigned 32-bit integers from a file in little-endian byte order.

Gan_Bool gan_fread_lendian_ui64 FILE *  fp,
gan_uint64 *  aui64,
size_t  nitems
 

Reads an array of unsigned 64-bit integers from a file.

Parameters:
fp Pointer to a binary file opened for reading
aui64 Array of integers
nitems The number of integers to be read into the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Reads an array of unsigned 64-bit integers from a file in little-endian byte order.

Gan_Bool gan_fread_lendian_ul FILE *  fp,
unsigned long *  aul,
size_t  nitems
 

Macro: Reads an array of unsigned long integers from a file.

Parameters:
fp Pointer to a binary file opened for reading
aul Array of integers
nitems The number of integers to be read into the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Reads an array of unsigned long integers from a file.

Gan_Bool gan_fread_lendian_us FILE *  fp,
unsigned short *  aus,
size_t  nitems
 

Macro: Reads an array of unsigned short integers from a file.

Parameters:
fp Pointer to a binary file opened for reading
aus Array of integers
nitems The number of integers to be read into the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Reads an array of unsigned short integers from a file.

Gan_Bool gan_fwrite_lendian_f32 FILE *  fp,
gan_float32 *  af,
size_t  nitems
 

Writes an array of 32-bit floats to a file.

Parameters:
fp Pointer to a binary file opened for writing
af32 Array of floats
nitems The number of values to be written from the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Writes an array of 32-bit floats to a file in little-endian byte order.

Gan_Bool gan_fwrite_lendian_f64 FILE *  fp,
gan_float64 *  af64,
size_t  nitems
 

Writes an array of 64-bit floats to a file.

Parameters:
fp Pointer to a binary file opened for writing
af64 Array of 64-bit floats
nitems The number of values to be written from the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Writes an array of 64-bit floats to a file in little-endian byte order.

Gan_Bool gan_fwrite_lendian_i FILE *  fp,
int *  ai,
size_t  nitems
 

Macro: Writes an array of signed integers to a file.

Parameters:
fp Pointer to a binary file opened for reading
ai Array of integers
nitems The number of integers to be written from the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Writes an array of signed integers to a file.

Gan_Bool gan_fwrite_lendian_i16 FILE *  fp,
gan_int16 *  aui16,
size_t  nitems
 

Writes an array of signed 16-bit integers to a file.

Parameters:
fp Pointer to a binary file opened for reading
ai16 Array of integers
nitems The number of integers to be written from the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Writes an array of signed 16-bit integers to a file in little-endian byte order.

Gan_Bool gan_fwrite_lendian_i32 FILE *  fp,
gan_int32 *  aui32,
size_t  nitems
 

Writes an array of signed 32-bit integers to a file.

Parameters:
fp Pointer to a binary file opened for reading
ai32 Array of integers
nitems The number of integers to be written from the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Writes an array of signed 32-bit integers to a file in little-endian byte order.

Gan_Bool gan_fwrite_lendian_i64 FILE *  fp,
gan_int64 *  aui64,
size_t  nitems
 

Writes an array of signed 64-bit integers to a file.

Parameters:
fp Pointer to a binary file opened for reading
ai64 Array of integers
nitems The number of integers to be written from the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Writes an array of signed 64-bit integers to a file in little-endian byte order.

Gan_Bool gan_fwrite_lendian_l FILE *  fp,
long *  al,
size_t  nitems
 

Macro: Writes an array of signed long integers to a file.

Parameters:
fp Pointer to a binary file opened for reading
al Array of integers
nitems The number of integers to be written from the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Writes an array of signed long integers to a file.

Gan_Bool gan_fwrite_lendian_s FILE *  fp,
short *  as,
size_t  nitems
 

Macro: Writes an array of signed short integers to a file.

Parameters:
fp Pointer to a binary file opened for reading
as Array of integers
nitems The number of integers to be written from the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Writes an array of signed short integers to a file.

Gan_Bool gan_fwrite_lendian_ui FILE *  fp,
unsigned *  aui,
size_t  nitems
 

Macro: Writes an array of unsigned integers to a file.

Parameters:
fp Pointer to a binary file opened for reading
aui Array of integers
nitems The number of integers to be written from the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Writes an array of unsigned integers to a file.

Gan_Bool gan_fwrite_lendian_ui16 FILE *  fp,
gan_uint16 *  aui16,
size_t  nitems
 

Writes an array of unsigned 16-bit integers to a file.

Parameters:
fp Pointer to a binary file opened for reading
aui16 Array of integers
nitems The number of integers to be written from the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Writes an array of unsigned 16-bit integers to a file in little-endian byte order.

Gan_Bool gan_fwrite_lendian_ui32 FILE *  fp,
gan_uint32 *  aui32,
size_t  nitems
 

Writes an array of unsigned 32-bit integers to a file.

Parameters:
fp Pointer to a binary file opened for reading
aui32 Array of integers
nitems The number of integers to be written from the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Writes an array of unsigned 32-bit integers to a file in little-endian byte order.

Gan_Bool gan_fwrite_lendian_ui64 FILE *  fp,
gan_uint64 *  aui64,
size_t  nitems
 

Writes an array of unsigned 64-bit integers to a file.

Parameters:
fp Pointer to a binary file opened for reading
aui64 Array of integers
nitems The number of integers to be written from the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Writes an array of unsigned 64-bit integers to a file in little-endian byte order.

Gan_Bool gan_fwrite_lendian_ul FILE *  fp,
unsigned long *  aul,
size_t  nitems
 

Macro: Writes an array of unsigned long integers to a file.

Parameters:
fp Pointer to a binary file opened for reading
aul Array of integers
nitems The number of integers to be written from the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Writes an array of unsigned long integers to a file.

Gan_Bool gan_fwrite_lendian_us FILE *  fp,
unsigned short *  aus,
size_t  nitems
 

Macro: Writes an array of unsigned short integers to a file.

Parameters:
fp Pointer to a binary file opened for reading
aus Array of integers
nitems The number of integers to be written from the array
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Writes an array of unsigned short integers to a file.


Generated on Fri Mar 17 12:44:54 2006 by  doxygen 1.3.9.1