VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
trpage_swap.h
Go to the documentation of this file.
1 /* ************************
2  Copyright Terrain Experts Inc.
3  Terrain Experts Inc (TERREX) reserves all rights to this source code
4  unless otherwise specified in writing by the President of TERREX.
5  This copyright may be updated in the future, in which case that version
6  supercedes this one.
7  -------------------
8  Terrex Experts Inc.
9  4400 East Broadway #314
10  Tucson, AZ 85711
11  info@terrex.com
12  Tel: (520) 323-7990
13  ************************
14  */
15 
16 #ifndef trpage_swap_h_
17 #define trpage_swap_h_
18 
19 /* trpage_swap.h
20  Byte swapping utility functions.
21  */
22 
24 
25 #include <osgdb_vrftxp/trpage_io.h>
26 
29 short trpg_byteswap_short( short number );
32 TX_CPPDECL int trpg_byteswap_int( int number );
35 long trpg_byteswap_long( long number );
41 void trpg_byteswap_float_to_4bytes( float number, char result[4] );
44 void trpg_byteswap_double_to_8bytes( double number, char result[8] );
47 float trpg_byteswap_4bytes_to_float( const char result[4] );
50 double trpg_byteswap_8bytes_to_double( const char result[8] );
54 
57 void trpg_swap_two ( const char *in, char *out );
60 void trpg_swap_four ( const char *in, char *out );
63 void trpg_swap_eight ( const char *in, char *out );
66 void trpg_swap_sixteen ( const char *in, char *out );
67 
68 #endif

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)