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 MAK Technologies, Inc
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 
const DtU32 DtJtidsHeaderSize
Definition: link16Structs.h:13
DtU8 data[DtRttabSize]
Definition: link16Structs.h:36
Definition: vlNetTypes.h:306
Definition: vlNetTypes.h:305
struct DtJtidsHeaderStruct DtJtidsHeaderStruct
DtU8 data[DtLetHeaderSize]
Definition: link16Structs.h:30
Definition: link16Structs.h:34
void networkByteArraySwap(DtU8 *byteArray, int size)
Performs network order byte swapping of arbitrarily sized byte arrays.
Definition: link16Structs.h:40
DtU8 data[DtJtidsHeaderSize]
Definition: link16Structs.h:16
unsigned char DtU8
An eight bit unsigned integer value.
Definition: vlMachineTypes.h:137
Definition: link16Structs.h:28
Definition: link16Structs.h:20
const DtU32 DtRttabSize
Definition: link16Structs.h:33
DtNetworkByteOrderType DtNetworkByteOrdering()
Returns the network byte ordering type used by the DtNetType classes.
DtU8 data[DtTadilJWordSize]
Definition: link16Structs.h:22
Definition: link16Structs.h:14
struct DtTadilJWordStruct DtTadilJWordStruct
const DtU32 DtVoiceDataWordSize
Definition: link16Structs.h:25
struct DtLetHeaderStruct DtLetHeaderStruct
unsigned long DtU32
A 32 bit unsigned integer value.
Definition: vlMachineTypes.h:153
struct DtRttabStruct DtRttabStruct
const DtU32 DtTadilJWordSize
Definition: link16Structs.h:19
const DtU32 DtLetHeaderSize
Definition: link16Structs.h:27

Document ID: Generated on Thu Sep 19 02:12:35 EDT 2024 from SVN revision 269601
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)