VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
osgdb_vrftxp
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
23
#include <
osgdb_vrftxp/trpage_sys.h
>
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 );
38
trpgllong
trpg_byteswap_llong
(
trpgllong
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] );
53
TX_CPPDECL
trpgEndian
trpg_cpu_byte_order
(
void
);
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 Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)