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

Instances of DtStreamWriter encode values into a byte array The data will be written to the stream in big endian format. More...

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

Public Member Functions

 DtBigEndianStreamWriter (int length)
 constructor takes size of internal buffer to create. Care must be taken to allocate enough space.
 DtBigEndianStreamWriter (unsigned char *buffer, int length)
 constructor a given buffer and it's size. Care must be taken to allocate enough space.
virtual ~DtBigEndianStreamWriter ()
 destructor
void writeInt16 (short num)
 value readers return a value and increment the current position in the byte stream based on the size value
void writeUInt16 (unsigned short num)
 value readers return a value and increment the current position in the byte stream based on the size value
void writeInt32 (int num)
 value readers return a value and increment the current position in the byte stream based on the size value
void writeUInt32 (unsigned int num)
 value readers return a value and increment the current position in the byte stream based on the size value
void writeInt64 (long long num)
 value readers return a value and increment the current position in the byte stream based on the size value
void writeUInt64 (unsigned long long num)
 value readers return a value and increment the current position in the byte stream based on the size value
void writeSingle (float num)
 value readers return a value and increment the current position in the byte stream based on the size value
void writeDouble (double num)
 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::DtStreamWriter
 DtStreamWriter (int length)
 constructor takes size of internal buffer to create. Care must be taken to allocate enough space.
 DtStreamWriter (unsigned char *buffer, int length)
 constructor a given buffer and it's size. Care must be taken to allocate enough space.
virtual ~DtStreamWriter ()
 destructor
virtual unsigned char * buffer ()
 get a copy of the internal buffer
virtual int length ()
virtual void writeBool (bool b)
 value readers return a value and increment the current position in the byte stream based on the size value
virtual void writeInt8 (char num)
 value readers return a value and increment the current position in the byte stream based on the size value
virtual void writeUInt8 (unsigned char num)
 value readers return a value and increment the current position in the byte stream based on the size value
virtual void writeString (std::string &str)
 value readers return a value and increment the current position in the byte stream based on the size value
virtual void writeVector (DtVector &vec)
 value readers return a value and increment the current position in the byte stream based on the size value
virtual void writeTaitBryan (DtTaitBryan &tb)
 value readers return a value and increment the current position in the byte stream based on the size value
virtual void writeQuaternion (const DtQuaternion &q)
 value readers return a value and increment the current position in the byte stream based on the size value
virtual void writeEntityId (const DtEntityIdentifier &id)
 value readers return a value and increment the current position in the byte stream based on the size value
virtual void writeEntityType (const DtEntityType &type)
 value readers return a value and increment the current position in the byte stream based on the size value
virtual void writeBytes (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::DtStreamWriter
void encodeStringSize (int size)
 encode the size of the string as a variable sized integer
- Protected Attributes inherited from makRadarFx::DtStreamWriter
unsigned char * myBuffer
unsigned char * myWriteHead
int myLength
bool myShouldDelete

Detailed Description

Instances of DtStreamWriter encode values into a byte array The data will be written to the stream in big endian format.

Constructor & Destructor Documentation

makRadarFx::DtBigEndianStreamWriter::DtBigEndianStreamWriter ( int  length)

constructor takes size of internal buffer to create. Care must be taken to allocate enough space.

makRadarFx::DtBigEndianStreamWriter::DtBigEndianStreamWriter ( unsigned char *  buffer,
int  length 
)

constructor a given buffer and it's size. Care must be taken to allocate enough space.

virtual makRadarFx::DtBigEndianStreamWriter::~DtBigEndianStreamWriter ( )
virtual

destructor

Member Function Documentation

void makRadarFx::DtBigEndianStreamWriter::writeInt16 ( short  num)
virtual

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

Reimplemented from makRadarFx::DtStreamWriter.

void makRadarFx::DtBigEndianStreamWriter::writeUInt16 ( unsigned short  num)
virtual

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

Reimplemented from makRadarFx::DtStreamWriter.

void makRadarFx::DtBigEndianStreamWriter::writeInt32 ( int  num)
virtual

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

Reimplemented from makRadarFx::DtStreamWriter.

void makRadarFx::DtBigEndianStreamWriter::writeUInt32 ( unsigned int  num)
virtual

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

Reimplemented from makRadarFx::DtStreamWriter.

void makRadarFx::DtBigEndianStreamWriter::writeInt64 ( long long  num)
virtual

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

Reimplemented from makRadarFx::DtStreamWriter.

void makRadarFx::DtBigEndianStreamWriter::writeUInt64 ( unsigned long long  num)
virtual

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

Reimplemented from makRadarFx::DtStreamWriter.

void makRadarFx::DtBigEndianStreamWriter::writeSingle ( float  num)
virtual

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

Reimplemented from makRadarFx::DtStreamWriter.

void makRadarFx::DtBigEndianStreamWriter::writeDouble ( double  num)
virtual

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

Reimplemented from makRadarFx::DtStreamWriter.


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


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