Odyssey::Buffer Class Reference

Represents a string of raw binary data. More...

#include <Buffer.h>

List of all members.

Public Member Functions

 Buffer ()
 Creates a new, empty Buffer.
 Buffer (uint8 *data, uint32 size)
 Initializes this Buffer with the given data.
 Buffer (const Buffer &rhs)
 Initializes this Buffer as a shared copy of the given data.
bool isEmpty () const
 Returns true if the Buffer data is NULL.
uint8getData () const
 Returns the internal data buffer.
uint32 getSize () const
 Returns the size of the internal data chunk.
void clear ()
 Clears the internal data.
void copy (const Buffer &rhs)
 Forces an actual byte-by-byte copy of the given Buffer.
Bufferoperator= (const Buffer &rhs)
 operator uint8 * () const


Detailed Description

Represents a string of raw binary data.

This class represents a blob of binary data. It is used to represent more structured data in a simplistic raw form.


Constructor & Destructor Documentation

Odyssey::Buffer::Buffer  ) 
 

Creates a new, empty Buffer.

Odyssey::Buffer::Buffer uint8 data,
uint32  size
 

Initializes this Buffer with the given data.

Odyssey::Buffer::Buffer const Buffer rhs  ) 
 

Initializes this Buffer as a shared copy of the given data.


Member Function Documentation

void Odyssey::Buffer::clear  ) 
 

Clears the internal data.

void Odyssey::Buffer::copy const Buffer rhs  ) 
 

Forces an actual byte-by-byte copy of the given Buffer.

uint8* Odyssey::Buffer::getData  )  const
 

Returns the internal data buffer.

uint32 Odyssey::Buffer::getSize  )  const
 

Returns the size of the internal data chunk.

bool Odyssey::Buffer::isEmpty  )  const
 

Returns true if the Buffer data is NULL.

Odyssey::Buffer::operator uint8 *  )  const [inline]
 

Buffer& Odyssey::Buffer::operator= const Buffer rhs  ) 
 


The documentation for this class was generated from the following file:
Generated on Sun Jan 7 01:18:52 2007 for Odyssey Meta-Engine by  doxygen 1.4.6-NO