21 #ifdef DtUSE_UTILITIES_NAMESPACE
22 namespace DtUSE_UTILITIES_NAMESPACE
35 DtStreamReader(
unsigned char* buffer,
int length,
bool copyInternally=
true);
45 unsigned char readUInt8();
47 unsigned short readUInt16();
49 unsigned int readUInt32();
50 long long readInt64();
51 unsigned long long readUInt64();
54 std::string readString();
60 unsigned char* readBytes(
int length);
65 int decodeStringSize();
89 unsigned char* buffer();
96 void writeBool(
bool b);
97 void writeInt8(
char num);
98 void writeUInt8(
unsigned char num);
99 void writeInt16(
short num);
100 void writeUInt16(
unsigned short num);
101 void writeInt32(
int num);
102 void writeUInt32(
unsigned int num);
103 void writeInt64(
long long num);
104 void writeUInt64(
unsigned long long num);
105 void writeSingle(
float num);
106 void writeDouble(
double num);
107 void writeString(
const std::string& str);
108 void writeVector(
const DtVector& vec);
113 void writeBytes(
unsigned char* bytes,
int length);
118 void encodeStringSize(
int size);
126 #ifdef DtUSE_UTILITIES_NAMESPACE
Contains the DtEntityIdentifier class declaration.
unsigned char * myBuffer
Definition: byteStream.h:66
Contains the DtEntityType and DtRadioEntityType class declarations.
This file contains the definition of DtQuaternion as well as many functions which operate on DtQuater...
unsigned char * myBuffer
Definition: byteStream.h:119
DtTaitBryans are used to represent orientation of an object, using a set of three Euler angles...
Definition: vlTaitBryan.h:43
unsigned char * myWriteHead
Definition: byteStream.h:120
This file declares DtVector and DtVector32.
Definition: vlVector.h:224
This file declares DtTaitBryan.
Instances of DtStreamWriter encode values into a byte array.
Definition: byteStream.h:74
bool myBufferAlloced
Definition: byteStream.h:69
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
Quaternions are used to represent orientation of an object.
Definition: vlQuaternion.h:30
unsigned char * myReadHead
Definition: byteStream.h:67
#define DT_DLL_VLPROTIND
Definition: vlMachineTypes.h:110
int myLength
Definition: byteStream.h:68
int DT_DLL_VLPROTIND DtEncodedStringSize(const std::string &str)
Instances of DtStreamReader decode values from a byte array.
Definition: byteStream.h:31
bool myBufferAlloced
Definition: byteStream.h:122
int myLength
Definition: byteStream.h:121
DtEntityType is used to represent the type an entity object.
Definition: entityType.h:26