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

endian_io.h

Go to the documentation of this file.
00001 
00014 /* This library is free software; you can redistribute it and/or
00015    modify it under the terms of the GNU Lesser General Public
00016    License as published by the Free Software Foundation; either
00017    version 2.1 of the License, or (at your option) any later version.
00018 
00019    This library is distributed in the hope that it will be useful,
00020    but WITHOUT ANY WARRANTY; without even the implied warranty of
00021    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00022    Lesser General Public License for more details.
00023 
00024    You should have received a copy of the GNU Lesser General Public
00025    License along with this library; if not, write to the Free Software
00026    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00027 */
00028 
00029 #ifndef _GAN_ENDIAN_IO_H
00030 #define _GAN_ENDIAN_IO_H
00031 
00032 #include <gandalf/common/misc_defs.h>
00033 
00034 #ifdef __cplusplus
00035 extern "C" {
00036 #endif
00037 
00048  Gan_Bool gan_fread_lendian_i16  ( FILE *fp, gan_int16 *aui16, size_t nitems );
00049  Gan_Bool gan_fwrite_lendian_i16 ( FILE *fp, gan_int16 *aui16, size_t nitems );
00050  Gan_Bool gan_fread_lendian_ui16  ( FILE *fp, gan_uint16 *aui16, size_t nitems );
00051  Gan_Bool gan_fwrite_lendian_ui16 ( FILE *fp, gan_uint16 *aui16, size_t nitems );
00052 
00053  Gan_Bool gan_fread_lendian_i32  ( FILE *fp, gan_int32 *aui32, size_t nitems );
00054  Gan_Bool gan_fwrite_lendian_i32 ( FILE *fp, gan_int32 *aui32, size_t nitems );
00055  Gan_Bool gan_fread_lendian_ui32  ( FILE *fp, gan_uint32 *aui32, size_t nitems );
00056  Gan_Bool gan_fwrite_lendian_ui32 ( FILE *fp, gan_uint32 *aui32, size_t nitems );
00057 
00058  Gan_Bool gan_fread_lendian_i64  ( FILE *fp, gan_int64 *aui64, size_t nitems );
00059  Gan_Bool gan_fwrite_lendian_i64 ( FILE *fp, gan_int64 *aui64, size_t nitems );
00060  Gan_Bool gan_fread_lendian_ui64  ( FILE *fp, gan_uint64 *aui64, size_t nitems );
00061  Gan_Bool gan_fwrite_lendian_ui64 ( FILE *fp, gan_uint64 *aui64, size_t nitems );
00062 
00063  Gan_Bool gan_fread_lendian_f32  ( FILE *fp, gan_float32 *af, size_t nitems );
00064  Gan_Bool gan_fwrite_lendian_f32 ( FILE *fp, gan_float32 *af, size_t nitems );
00065 
00066  Gan_Bool gan_fread_lendian_f64  ( FILE *fp, gan_float64 *af64, size_t nitems );
00067  Gan_Bool gan_fwrite_lendian_f64 ( FILE *fp, gan_float64 *af64, size_t nitems );
00068 
00069 /* macros for standard types */
00070 
00080  Gan_Bool gan_fread_lendian_s  ( FILE *fp, short *as, size_t nitems );
00081 
00091  Gan_Bool gan_fwrite_lendian_s  ( FILE *fp, short *as, size_t nitems );
00092 
00102  Gan_Bool gan_fread_lendian_us  ( FILE *fp, unsigned short *aus, size_t nitems );
00103 
00113  Gan_Bool gan_fwrite_lendian_us  ( FILE *fp, unsigned short *aus,
00114                                   size_t nitems );
00115 
00125  Gan_Bool gan_fread_lendian_i  ( FILE *fp, int *ai, size_t nitems );
00126 
00136  Gan_Bool gan_fwrite_lendian_i  ( FILE *fp, int *ai, size_t nitems );
00137 
00147  Gan_Bool gan_fread_lendian_ui  ( FILE *fp, unsigned *aui, size_t nitems );
00148 
00158  Gan_Bool gan_fwrite_lendian_ui  ( FILE *fp, unsigned *aui, size_t nitems );
00159 
00169  Gan_Bool gan_fread_lendian_l  ( FILE *fp, long *al, size_t nitems );
00170 
00180  Gan_Bool gan_fwrite_lendian_l  ( FILE *fp, long *al, size_t nitems );
00181 
00191  Gan_Bool gan_fread_lendian_ul  ( FILE *fp, unsigned long *aul, size_t nitems );
00192 
00202  Gan_Bool gan_fwrite_lendian_ul  ( FILE *fp, unsigned long *aul,
00203                                   size_t nitems );
00204 
00213 #ifdef __cplusplus
00214 }
00215 #endif
00216 
00217 #endif /* #ifndef _GAN_ENDIAN_IO_H */

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