14#include <vlpi/entityIdentifier.h>
15#include <vlpi/entityType.h>
16#include <matrix/vlVector.h>
17#include <matrix/vlTaitBryan.h>
18#include <matrix/vlQuaternion.h>
59 virtual void readBytes(
unsigned char* buffer,
int length);
virtual float readSingle()
DtBigEndianStreamReader(unsigned char *buffer, int length, bool makeCopy=false)
constructor makes a copy of the buffer to work on.
virtual ~DtBigEndianStreamReader()
destructor
virtual long long readInt64()
virtual short readInt16()
value readers return a value and increment the current position in the byte stream based on the size ...
virtual unsigned short readUInt16()
virtual unsigned readUInt32()
virtual unsigned long long readUInt64()
virtual double readDouble()
void writeInt16(short num)
value readers return a value and increment the current position in the byte stream based on the size ...
void writeUInt16(unsigned short num)
DtBigEndianStreamWriter(unsigned char *buffer, int length)
constructor a given buffer and it's size. Care must be taken to allocate enough space.
void writeInt64(long long num)
void writeUInt64(unsigned long long num)
void writeDouble(double num)
DtBigEndianStreamWriter(int length)
constructor takes size of internal buffer to create. Care must be taken to allocate enough space.
void writeSingle(float num)
virtual ~DtBigEndianStreamWriter()
destructor
void writeUInt32(unsigned int num)
virtual double readDouble()
virtual bool readBool()
value readers return a value and increment the current position in the byte stream based on the size ...
DtQuaternion readQuaternion()
virtual DtVector readVector()
DtStreamReader(unsigned char *buffer, int length, bool makeCopy=false)
constructor makes a copy of the buffer to work on.
int decodeStringSize()
determine the size of a string from a variable length encoded integer
virtual DtTaitBryan readTaitBryan()
int myLength
Definition byteStream.h:68
DtEntityType readEntityType()
virtual unsigned readUInt32()
virtual void readBytes(unsigned char *buffer, int length)
virtual unsigned short readUInt16()
DtEntityIdentifier readEntityId()
unsigned char * myReadHead
Definition byteStream.h:67
virtual unsigned long long readUInt64()
virtual float readSingle()
virtual long long readInt64()
virtual ~DtStreamReader()
destructor
bool myShouldDelete
Definition byteStream.h:69
unsigned char * readBytes(int length)
virtual std::string readString()
virtual short readInt16()
virtual unsigned char readUInt8()
unsigned char * myBuffer
Definition byteStream.h:66
virtual void writeQuaternion(const DtQuaternion &q)
virtual void writeInt32(int num)
virtual void writeInt64(long long num)
virtual void writeVector(DtVector &vec)
virtual void writeSingle(float num)
bool myShouldDelete
Definition byteStream.h:121
virtual void writeUInt8(unsigned char num)
virtual void writeInt16(short num)
virtual void writeBytes(unsigned char *buffer, int length)
unsigned char * myBuffer
Definition byteStream.h:118
virtual void writeEntityId(const DtEntityIdentifier &id)
DtStreamWriter(int length)
constructor takes size of internal buffer to create. Care must be taken to allocate enough space.
virtual void writeUInt64(unsigned long long num)
virtual void writeUInt32(unsigned int num)
DtStreamWriter(unsigned char *buffer, int length)
constructor a given buffer and it's size. Care must be taken to allocate enough space.
virtual void writeBool(bool b)
value readers return a value and increment the current position in the byte stream based on the size ...
virtual void writeDouble(double num)
virtual void writeTaitBryan(DtTaitBryan &tb)
unsigned char * myWriteHead
Definition byteStream.h:119
virtual unsigned char * buffer()
get a copy of the internal buffer
virtual ~DtStreamWriter()
destructor
virtual void writeInt8(char num)
virtual void writeUInt16(unsigned short num)
virtual void writeString(std::string &str)
int myLength
Definition byteStream.h:120
virtual void writeEntityType(const DtEntityType &type)
void encodeStringSize(int size)
encode the size of the string as a variable sized integer
#define RFX_DLL_SHARED
Definition include/radarFxShared/export.h:15
Definition radarFxConnector.h:28
RFX_DLL_SHARED int DtEncodedStringLength(std::string str)
Get the size in bytes of the string when it is encoded.