VR-Link API Documentation for HLA 1.3
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vl
link16Structs.h
Go to the documentation of this file.
1
/*********************************************************************
2
* ** Copyright (c) 2011 VT MAK
3
* ** All rights reserved.
4
* *********************************************************************/
5
/*********************************************************************
6
* ** $RCSfile: Link16Structs.h,v $ $Revision: 1.1 $ $State: Exp $
7
* *********************************************************************/
8
9
#pragma once
10
11
#include <
vlutil/vlNetTypes.h
>
12
13
const
DtU32
DtJtidsHeaderSize
= 6;
14
typedef
struct
DtJtidsHeaderStruct
15
{
16
DtU8
data
[
DtJtidsHeaderSize
];
17
}
DtJtidsHeaderStruct
;
18
19
const
DtU32
DtTadilJWordSize
= 10;
20
typedef
struct
DtTadilJWordStruct
21
{
22
DtU8
data
[
DtTadilJWordSize
];
23
}
DtTadilJWordStruct
;
24
25
const
DtU32
DtVoiceDataWordSize
= 10;
26
27
const
DtU32
DtLetHeaderSize
= 6;
28
typedef
struct
DtLetHeaderStruct
29
{
30
DtU8
data
[
DtLetHeaderSize
];
31
}
DtLetHeaderStruct
;
32
33
const
DtU32
DtRttabSize
= 6;
34
typedef
struct
DtRttabStruct
35
{
36
DtU8
data
[
DtRttabSize
];
37
}
DtRttabStruct
;
38
40
inline
void
networkByteArraySwap
(
DtU8
* byteArray,
int
size)
41
{
42
#if DT_LITTLE_ENDIAN
43
if
(
DtNetworkByteOrdering
() ==
DtBigEndian
)
44
{
45
#else
46
if
(
DtNetworkByteOrdering
() ==
DtLittleEndian
)
47
{
48
#endif
49
int
theEnd = 0;
50
for
(
int
i = 0; i < ( size >> 1 ); ++i )
51
{
52
theEnd = ( size - 1 ) - i;
53
byteArray[ i ] ^= byteArray[ theEnd ];
54
byteArray[ theEnd ] ^= byteArray[ i ];
55
byteArray[ i ] ^= byteArray[ theEnd ];
56
}
57
}
58
}
59
60
Document ID: Generated on Thu Feb 22 04:26:36 EST 2018 from SVN revision 186468
Copyright © 2005-2016 VT MÄK. All Rights Reserved (
www.mak.com
)