Spinning Topp Logo BlackTopp Studios
Public Member Functions | Public Attributes | List of all members
Mezzanine::Threading::RawFile Class Reference

A simple in memory representation of a file. More...

#include <asynchronousfileloadingworkunit.h>

Public Member Functions

 RawFile (const MaxInt BufferSize)
 Constructor. More...
 ~RawFile ()
 De-allocates the memory for the file. This make deleting Data manually a bad idea.

Public Attributes

 A pointer to a block of memory as it was loaded raw from the file.
MaxInt Size
 How big is the file in bytes?

Detailed Description

A simple in memory representation of a file.

Definition at line 62 of file asynchronousfileloadingworkunit.h.

Constructor & Destructor Documentation

Mezzanine::Threading::RawFile::RawFile ( const MaxInt  BufferSize)


Allocates space of the amount passed. In the AsynchronousFileLoadWorkUnit this is the size of the file to be loaded.

BufferSizeThe size of the buffer to allocate.

Definition at line 75 of file asynchronousfileloadingworkunit.h.

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