RadarFX API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
List of all members | Public Member Functions
makRadarFx::DtBigEndianStreamReader Class Reference

Instances of DtStreamReader decode values from a byte array The data in the stream is expected to be in big endian format and will be returned in the system format. More...

Inheritance diagram for makRadarFx::DtBigEndianStreamReader:
Inheritance graph
[legend]

Public Member Functions

 DtBigEndianStreamReader (unsigned char *buffer, int length, bool makeCopy=false)
 constructor makes a copy of the buffer to work on.
virtual ~DtBigEndianStreamReader ()
 destructor
virtual short readInt16 ()
 value readers return a value and increment the current position in the byte stream based on the size value
virtual unsigned short readUInt16 ()
 value readers return a value and increment the current position in the byte stream based on the size value
virtual int readInt32 ()
 value readers return a value and increment the current position in the byte stream based on the size value
virtual unsigned readUInt32 ()
 value readers return a value and increment the current position in the byte stream based on the size value
virtual long long readInt64 ()
 value readers return a value and increment the current position in the byte stream based on the size value
virtual unsigned long long readUInt64 ()
 value readers return a value and increment the current position in the byte stream based on the size value
virtual float readSingle ()
 value readers return a value and increment the current position in the byte stream based on the size value
virtual double readDouble ()
 value readers return a value and increment the current position in the byte stream based on the size value
- Public Member Functions inherited from makRadarFx::DtStreamReader
 DtStreamReader (unsigned char *buffer, int length, bool makeCopy=false)
 constructor makes a copy of the buffer to work on.
virtual ~DtStreamReader ()
 destructor
virtual bool readBool ()
 value readers return a value and increment the current position in the byte stream based on the size value
virtual char readInt8 ()
 value readers return a value and increment the current position in the byte stream based on the size value
virtual unsigned char readUInt8 ()
 value readers return a value and increment the current position in the byte stream based on the size value
virtual std::string readString ()
 value readers return a value and increment the current position in the byte stream based on the size value
virtual DtVector readVector ()
 value readers return a value and increment the current position in the byte stream based on the size value
virtual DtTaitBryan readTaitBryan ()
 value readers return a value and increment the current position in the byte stream based on the size value
DtQuaternion readQuaternion ()
 value readers return a value and increment the current position in the byte stream based on the size value
DtEntityIdentifier readEntityId ()
 value readers return a value and increment the current position in the byte stream based on the size value
DtEntityType readEntityType ()
 value readers return a value and increment the current position in the byte stream based on the size value
unsigned char * readBytes (int length)
 value readers return a value and increment the current position in the byte stream based on the size value
virtual void readBytes (unsigned char *buffer, int length)
 value readers return a value and increment the current position in the byte stream based on the size value

Additional Inherited Members

- Protected Member Functions inherited from makRadarFx::DtStreamReader
int decodeStringSize ()
 determine the size of a string from a variable length encoded integer
- Protected Attributes inherited from makRadarFx::DtStreamReader
unsigned char * myBuffer
unsigned char * myReadHead
int myLength
bool myShouldDelete

Detailed Description

Instances of DtStreamReader decode values from a byte array The data in the stream is expected to be in big endian format and will be returned in the system format.

Constructor & Destructor Documentation

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

constructor makes a copy of the buffer to work on.

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

destructor

Member Function Documentation

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

value readers return a value and increment the current position in the byte stream based on the size value

Reimplemented from makRadarFx::DtStreamReader.

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

value readers return a value and increment the current position in the byte stream based on the size value

Reimplemented from makRadarFx::DtStreamReader.

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

value readers return a value and increment the current position in the byte stream based on the size value

Reimplemented from makRadarFx::DtStreamReader.

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

value readers return a value and increment the current position in the byte stream based on the size value

Reimplemented from makRadarFx::DtStreamReader.

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

value readers return a value and increment the current position in the byte stream based on the size value

Reimplemented from makRadarFx::DtStreamReader.

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

value readers return a value and increment the current position in the byte stream based on the size value

Reimplemented from makRadarFx::DtStreamReader.

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

value readers return a value and increment the current position in the byte stream based on the size value

Reimplemented from makRadarFx::DtStreamReader.

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

value readers return a value and increment the current position in the byte stream based on the size value

Reimplemented from makRadarFx::DtStreamReader.


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


Copyright © 2024 MAK Technologies, Inc. All Rights Reserved (www.mak.com)