56 #ifndef OPENMESH_BINARY_HELPER_HH
57 #define OPENMESH_BINARY_HELPER_HH
64 #if defined( OM_CC_MIPS )
92 short int read_short(FILE* _in,
bool _swap=
false);
96 int read_int(FILE* _in,
bool _swap=
false);
100 float read_float(FILE* _in,
bool _swap=
false);
108 short int read_short(std::istream& _in,
bool _swap=
false);
112 int read_int(std::istream& _in,
bool _swap=
false);
116 float read_float(std::istream& _in,
bool _swap=
false);
120 double read_double(std::istream& _in,
bool _swap=
false);
125 void write_short(
short int _i, FILE* _out,
bool _swap=
false);
129 void write_int(
int _i, FILE* _out,
bool _swap=
false);
133 void write_float(
float _f, FILE* _out,
bool _swap=
false);
137 void write_double(
double _d, FILE* _out,
bool _swap=
false);
141 void write_short(
short int _i, std::ostream& _out,
bool _swap=
false);
145 void write_int(
int _i, std::ostream& _out,
bool _swap=
false);
149 void write_float(
float _f, std::ostream& _out,
bool _swap=
false);
153 void write_double(
double _d, std::ostream& _out,
bool _swap=
false);
162 #endif // OPENMESH_MESHREADER_HH defined
float read_float(FILE *_in, bool _swap=false)
int read_int(FILE *_in, bool _swap=false)
void write_short(short int _i, FILE *_out, bool _swap=false)
double read_double(FILE *_in, bool _swap=false)
void write_int(int _i, FILE *_out, bool _swap=false)
void write_float(float _f, FILE *_out, bool _swap=false)
short int read_short(FILE *_in, bool _swap=false)
void write_double(double _d, FILE *_out, bool _swap=false)