Main Page   Modules   Compound List   File List   Compound 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_i16 *aui16, size_t nitems );
00049 Gan_Bool gan_fwrite_lendian_i16 ( FILE *fp, gan_i16 *aui16, size_t nitems );
00050 Gan_Bool gan_fread_lendian_ui16  ( FILE *fp, gan_ui16 *aui16, size_t nitems );
00051 Gan_Bool gan_fwrite_lendian_ui16 ( FILE *fp, gan_ui16 *aui16, size_t nitems );
00052 
00053 Gan_Bool gan_fread_lendian_i32  ( FILE *fp, gan_i32 *aui32, size_t nitems );
00054 Gan_Bool gan_fwrite_lendian_i32 ( FILE *fp, gan_i32 *aui32, size_t nitems );
00055 Gan_Bool gan_fread_lendian_ui32  ( FILE *fp, gan_ui32 *aui32, size_t nitems );
00056 Gan_Bool gan_fwrite_lendian_ui32 ( FILE *fp, gan_ui32 *aui32, size_t nitems );
00057 
00058 Gan_Bool gan_fread_lendian_f  ( FILE *fp, float *af, size_t nitems );
00059 Gan_Bool gan_fwrite_lendian_f ( FILE *fp, float *af, size_t nitems );
00060 Gan_Bool gan_fread_lendian_d  ( FILE *fp, double *ad, size_t nitems );
00061 Gan_Bool gan_fwrite_lendian_d ( FILE *fp, double *ad, size_t nitems );
00062 
00063 /* macros for standard types */
00064 
00074 Gan_Bool gan_fread_lendian_s  ( FILE *fp, short *as, size_t nitems );
00075 
00085 Gan_Bool gan_fwrite_lendian_s  ( FILE *fp, short *as, size_t nitems );
00086 
00096 Gan_Bool gan_fread_lendian_us  ( FILE *fp, unsigned short *aus, size_t nitems );
00097 
00107 Gan_Bool gan_fwrite_lendian_us  ( FILE *fp, unsigned short *aus,
00108                                   size_t nitems );
00109 
00119 Gan_Bool gan_fread_lendian_i  ( FILE *fp, int *ai, size_t nitems );
00120 
00130 Gan_Bool gan_fwrite_lendian_i  ( FILE *fp, int *ai, size_t nitems );
00131 
00141 Gan_Bool gan_fread_lendian_ui  ( FILE *fp, unsigned *aui, size_t nitems );
00142 
00152 Gan_Bool gan_fwrite_lendian_ui  ( FILE *fp, unsigned *aui, size_t nitems );
00153 
00163 Gan_Bool gan_fread_lendian_l  ( FILE *fp, long *al, size_t nitems );
00164 
00174 Gan_Bool gan_fwrite_lendian_l  ( FILE *fp, long *al, size_t nitems );
00175 
00185 Gan_Bool gan_fread_lendian_ul  ( FILE *fp, unsigned long *aul, size_t nitems );
00186 
00196 Gan_Bool gan_fwrite_lendian_ul  ( FILE *fp, unsigned long *aul,
00197                                   size_t nitems );
00198 
00207 #ifdef __cplusplus
00208 }
00209 #endif
00210 
00211 #endif /* #ifndef _GAN_ENDIAN_IO_H */

Generated on Mon Oct 13 16:14:32 2003 by doxygen1.3-rc1