Gosu::File Class Reference

File with the Resource interface. More...

Inheritance diagram for Gosu::File:

Gosu::Resource

List of all members.

Public Member Functions

 File (const std::wstring &filename, FileMode mode=fmRead)
 ~File ()
std::size_t size () const
void resize (std::size_t newSize)
void read (std::size_t offset, std::size_t length, void *destBuffer) const
void write (std::size_t offset, std::size_t length, const void *sourceBuffer)


Detailed Description

File with the Resource interface.

Definition at line 236 of file IO.hpp.


Constructor & Destructor Documentation

Gosu::File::File ( const std::wstring &  filename,
FileMode  mode = fmRead 
) [explicit]

Gosu::File::~File (  ) 


Member Function Documentation

void Gosu::File::read ( std::size_t  offset,
std::size_t  length,
void *  destBuffer 
) const [virtual]

Implements Gosu::Resource.

void Gosu::File::resize ( std::size_t  newSize  )  [virtual]

Implements Gosu::Resource.

std::size_t Gosu::File::size (  )  const [virtual]

Implements Gosu::Resource.

void Gosu::File::write ( std::size_t  offset,
std::size_t  length,
const void *  sourceBuffer 
) [virtual]

Implements Gosu::Resource.


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