VR-Forces 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)
 
virtual ~trpgMemReadBuffer (void) override
 
virtual bool isEmpty (void) override
 
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

virtual bool GetData (char *, int) override
 
virtual bool GetDataRef (char **, int) override
 
virtual bool Skip (int) override
 
- 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.

virtual trpgMemReadBuffer::~trpgMemReadBuffer ( void  )
overridevirtual

Member Function Documentation

virtual bool trpgMemReadBuffer::isEmpty ( void  )
overridevirtual

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  )
virtual bool trpgMemReadBuffer::GetData ( char ,
int   
)
overrideprotectedvirtual

Endiannees of the CPU.

Implements trpgReadBuffer.

virtual bool trpgMemReadBuffer::GetDataRef ( char **  ,
int   
)
overrideprotectedvirtual

Retrieve the given amount of data.

Implements trpgReadBuffer.

virtual bool trpgMemReadBuffer::Skip ( int  )
overrideprotectedvirtual

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 Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)