[AE Engine logo] Public API Reference
Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

aeDataBuffer Class Reference

A generic data buffer class. More...

#include <databuffer.h>

Inheritance diagram for aeDataBuffer:

aeBase List of all members.

Public Member Functions

 aeDataBuffer (const char *dfile, bool binary=false)
bool read (const char *dfile, bool binary=false)
 Read a file into the buffer.

char * getData () const
 Get the data from the buffer.

size_t getSize () const
 Get the size of the data in the buffer.


Private Attributes

char * databuf
size_t size

Detailed Description

A generic data buffer class.

Definition at line 34 of file databuffer.h.


Member Function Documentation

char* aeDataBuffer::getData   const [inline]
 

Get the data from the buffer.

Returns:
The data.

Definition at line 62 of file databuffer.h.

size_t aeDataBuffer::getSize   const [inline]
 

Get the size of the data in the buffer.

Returns:
The data size.

Definition at line 70 of file databuffer.h.

bool aeDataBuffer::read const char *    dfile,
bool    binary = false
 

Read a file into the buffer.

Parameters:
dfile Path to the file.
binary Binary mode.
Returns:
true if the file was read succesfully.


The documentation for this class was generated from the following file:
AE Engine Public API Reference
Generated on Wed Apr 9 09:43:40 2003 by Doxygen.