VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
trpgMemReadBuffer Class Reference
Inheritance diagram for trpgMemReadBuffer:
Inheritance graph
[legend]

Public Member Functions

 trpgMemReadBuffer (trpgEndian)
 
 ~trpgMemReadBuffer (void)
 
bool isEmpty (void)
 
void SetLength (int)
 
int GetLength (void)
 
charGetDataPtr (void)
 
- Public Member Functions inherited from trpgReadBuffer
virtual ~trpgReadBuffer (void)
 
virtual bool Get (int32 &)
 
virtual bool Get (int64 &)
 
virtual bool Get (char *, int)
 
virtual bool Get (std::string &)
 
virtual bool Get (float32 &)
 
virtual bool Get (float64 &)
 
virtual bool Get (bool &)
 
virtual bool Get (uint8 &)
 
virtual bool Get (trpgToken &)
 
virtual bool GetArray (int, float32 **)
 
virtual bool GetArray (int, float64 **)
 
virtual bool GetArray (int, int32 **)
 
virtual bool GetArray (int, trpgColor **)
 
virtual bool GetArray (int, char **)
 
virtual bool Get (trpg2iPoint &)
 
virtual bool Get (trpg2dPoint &)
 
virtual bool Get (trpg3dPoint &)
 
virtual bool Get (trpgColor &)
 
virtual bool GetToken (trpgToken &, int32 &)
 
virtual void PushLimit (int)
 
virtual void PopLimit (void)
 
virtual bool SkipToLimit (void)
 
virtual bool TestLimit (int)
 

Protected Member Functions

bool GetData (char *, int)
 
bool GetDataRef (char **, int)
 
bool Skip (int)
 
- Protected Member Functions inherited from trpgReadBuffer
virtual void UpdateLimits (int)
 

Protected Attributes

int len
 
int totLen
 
int pos
 
chardata
 
- Protected Attributes inherited from trpgReadBuffer
trpgEndian ness
 
trpgEndian cpuNess
 
std::vector< intlimits
 

Constructor & Destructor Documentation

trpgMemReadBuffer::trpgMemReadBuffer ( trpgEndian  )

Memory read buffers must be initialized with an endianness.

trpgMemReadBuffer::~trpgMemReadBuffer ( void  )

Member Function Documentation

bool trpgMemReadBuffer::isEmpty ( void  )
virtual

Return true if we're out of data.

Implements trpgReadBuffer.

void trpgMemReadBuffer::SetLength ( int  )

Sets the size of this read buffer.

int trpgMemReadBuffer::GetLength ( void  )
inline

Gets the size of the buffer.

char* trpgMemReadBuffer::GetDataPtr ( void  )
bool trpgMemReadBuffer::GetData ( char ,
int   
)
protectedvirtual

Endiannees of the CPU.

Implements trpgReadBuffer.

bool trpgMemReadBuffer::GetDataRef ( char **  ,
int   
)
protectedvirtual

Retrieve the given amount of data.

Implements trpgReadBuffer.

bool trpgMemReadBuffer::Skip ( int  )
protectedvirtual

Retrieve a pointer to the given array.

Implements trpgReadBuffer.

Member Data Documentation

int trpgMemReadBuffer::len
protected

Skip over the given amount.

int trpgMemReadBuffer::totLen
protected

Data Length.

int trpgMemReadBuffer::pos
protected

Total allocated length.

char* trpgMemReadBuffer::data
protected

Current position.


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

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)