VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
makVrf::DtBigEndianStreamWriter Class Reference

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

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

Public Member Functions

 DtBigEndianStreamWriter (int length)
 
 DtBigEndianStreamWriter (unsigned char *buffer, int length)
 
virtual ~DtBigEndianStreamWriter ()
 
void writeInt16 (short num)
 
void writeUInt16 (unsigned short num)
 
void writeInt32 (int num)
 
void writeUInt32 (unsigned int num)
 
void writeInt64 (long long num)
 
void writeUInt64 (unsigned long long num)
 
void writeSingle (float num)
 
void writeDouble (double num)
 
- Public Member Functions inherited from makVrf::DtStreamWriter
 DtStreamWriter (int length)
 
 DtStreamWriter (unsigned char *buffer, int length)
 
virtual ~DtStreamWriter ()
 
virtual unsigned charbuffer ()
 
virtual int length ()
 
virtual void writeBool (bool b)
 
virtual void writeInt8 (char num)
 
virtual void writeUInt8 (unsigned char num)
 
virtual void writeString (std::string &str)
 
virtual void writeVector (DtVector &vec)
 
virtual void writeTaitBryan (DtTaitBryan &tb)
 
virtual void writeQuaternion (const DtQuaternion &q)
 
virtual void writeEntityId (const DtEntityIdentifier &id)
 
virtual void writeEntityType (const DtEntityType &type)
 
virtual void writeBytes (unsigned char *buffer, int length)
 

Additional Inherited Members

- Protected Member Functions inherited from makVrf::DtStreamWriter
void encodeStringSize (int size)
 
- Protected Attributes inherited from makVrf::DtStreamWriter
unsigned charmyBuffer
 
unsigned charmyWriteHead
 
int myLength
 
bool myShouldDelete
 

Constructor & Destructor Documentation

makVrf::DtBigEndianStreamWriter::DtBigEndianStreamWriter ( int  length)

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

makVrf::DtBigEndianStreamWriter::DtBigEndianStreamWriter ( unsigned char buffer,
int  length 
)

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

virtual makVrf::DtBigEndianStreamWriter::~DtBigEndianStreamWriter ( )
virtual

destructor

Member Function Documentation

void makVrf::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 makVrf::DtStreamWriter.

void makVrf::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 makVrf::DtStreamWriter.

void makVrf::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 makVrf::DtStreamWriter.

void makVrf::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 makVrf::DtStreamWriter.

void makVrf::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 makVrf::DtStreamWriter.

void makVrf::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 makVrf::DtStreamWriter.

void makVrf::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 makVrf::DtStreamWriter.

void makVrf::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 makVrf::DtStreamWriter.


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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)