VR-Engage  2.2
Loading...
Searching...
No Matches
makRadarFx::DtBigEndianStreamReader Class Reference

Detailed Description

This class extends DtStreamReader to read and decode data from a byte array where the data is stored in big endian format. It overrides the methods that need byte swapping to convert from big endian to the system's native format.

#include <byteStream.h>

Inheritance diagram for makRadarFx::DtBigEndianStreamReader:
[legend]

Public Member Functions

 DtBigEndianStreamReader (unsigned char *buffer, int length, bool makeCopy=false)
 
virtual ~DtBigEndianStreamReader ()
 
Big Endian Value Reading Methods

Each method reads a big endian value and advances the read position

virtual short readInt16 ()
 
virtual unsigned short readUInt16 ()
 
virtual int readInt32 ()
 
virtual unsigned readUInt32 ()
 
virtual long long readInt64 ()
 
virtual unsigned long long readUInt64 ()
 
virtual float readSingle ()
 
virtual double readDouble ()
 
- Public Member Functions inherited from makRadarFx::DtStreamReader
 DtStreamReader (unsigned char *buffer, int length, bool makeCopy=false)
 
virtual ~DtStreamReader ()
 
virtual bool readBool ()
 
virtual char readInt8 ()
 
virtual unsigned char readUInt8 ()
 
virtual std::string readString ()
 
virtual DtVector readVector ()
 
virtual DtTaitBryan readTaitBryan ()
 
DtQuaternion readQuaternion ()
 
DtEntityIdentifier readEntityId ()
 
DtEntityType readEntityType ()
 
unsigned char * readBytes (int length)
 
virtual void readBytes (unsigned char *buffer, int length)
 

Additional Inherited Members

int decodeStringSize ()
 
unsigned char * myBuffer
 
unsigned char * myReadHead
 
int myLength
 
bool myShouldDelete
 

Constructor & Destructor Documentation

◆ DtBigEndianStreamReader()

makRadarFx::DtBigEndianStreamReader::DtBigEndianStreamReader ( unsigned char * buffer,
int length,
bool makeCopy = false )

Constructor for big endian stream reader.

Parameters
bufferPointer to the input byte array
lengthLength of the input buffer in bytes
makeCopyWhether to make a copy of the buffer (true) or use the original (false)

Creates a new big endian stream reader to work with the provided buffer

◆ ~DtBigEndianStreamReader()

virtual makRadarFx::DtBigEndianStreamReader::~DtBigEndianStreamReader ( )
virtual

Virtual destructor.

Member Function Documentation

◆ readInt16()

virtual short makRadarFx::DtBigEndianStreamReader::readInt16 ( )
virtual

Reads a 16-bit signed integer in big endian format.

Returns
The 16-bit signed integer value read from the stream

Reimplemented from makRadarFx::DtStreamReader.

◆ readUInt16()

virtual unsigned short makRadarFx::DtBigEndianStreamReader::readUInt16 ( )
virtual

Reads a 16-bit unsigned integer in big endian format.

Returns
The 16-bit unsigned integer value read from the stream

Reimplemented from makRadarFx::DtStreamReader.

◆ readInt32()

virtual int makRadarFx::DtBigEndianStreamReader::readInt32 ( )
virtual

Reads a 32-bit signed integer in big endian format.

Returns
The 32-bit signed integer value read from the stream

Reimplemented from makRadarFx::DtStreamReader.

◆ readUInt32()

virtual unsigned makRadarFx::DtBigEndianStreamReader::readUInt32 ( )
virtual

Reads a 32-bit unsigned integer in big endian format.

Returns
The 32-bit unsigned integer value read from the stream

Reimplemented from makRadarFx::DtStreamReader.

◆ readInt64()

virtual long long makRadarFx::DtBigEndianStreamReader::readInt64 ( )
virtual

Reads a 64-bit signed integer in big endian format.

Returns
The 64-bit signed integer value read from the stream

Reimplemented from makRadarFx::DtStreamReader.

◆ readUInt64()

virtual unsigned long long makRadarFx::DtBigEndianStreamReader::readUInt64 ( )
virtual

Reads a 64-bit unsigned integer in big endian format.

Returns
The 64-bit unsigned integer value read from the stream

Reimplemented from makRadarFx::DtStreamReader.

◆ readSingle()

virtual float makRadarFx::DtBigEndianStreamReader::readSingle ( )
virtual

Reads a 32-bit floating point value in big endian format.

Returns
The 32-bit float value read from the stream

Reimplemented from makRadarFx::DtStreamReader.

◆ readDouble()

virtual double makRadarFx::DtBigEndianStreamReader::readDouble ( )
virtual

Reads a 64-bit floating point value in big endian format.

Returns
The 64-bit double value read from the stream

Reimplemented from makRadarFx::DtStreamReader.


The documentation for this class was generated from the following file: