00001
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
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
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