VR-Link API Documentation for HLA 1.3
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 #ifdef DtHLA
10 
11 #ifndef link16Structs_H_
12 #define link16Structs_H_
13 
14 #include <vlutil/vlNetTypes.h>
15 
17 typedef struct DtJtidsHeaderStruct
18 {
21 
23 typedef struct DtTadilJWordStruct
24 {
27 
29 
31 typedef struct DtLetHeaderStruct
32 {
35 
36 const DtU32 DtRttabSize = 6;
37 typedef struct DtRttabStruct
38 {
41 
43 inline void networkByteArraySwap(DtU8* byteArray, int size)
44 {
45 #if DT_LITTLE_ENDIAN
47  {
48 #else
50  {
51 #endif
52  int theEnd = 0;
53  for( int i = 0; i < ( size >> 1 ); ++i )
54  {
55  theEnd = ( size - 1 ) - i;
56  byteArray[ i ] ^= byteArray[ theEnd ];
57  byteArray[ theEnd ] ^= byteArray[ i ];
58  byteArray[ i ] ^= byteArray[ theEnd ];
59  }
60  }
61 }
62 
63 #endif
64 #endif

Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)