VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
14 typedef struct DtJtidsHeaderStruct
15 {
18 
20 typedef struct DtTadilJWordStruct
21 {
24 
26 
28 typedef struct DtLetHeaderStruct
29 {
32 
33 const DtU32 DtRttabSize = 6;
34 typedef struct DtRttabStruct
35 {
38 
40 inline void networkByteArraySwap(DtU8* byteArray, int size)
41 {
42 #if DT_LITTLE_ENDIAN
44  {
45 #else
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)