Gosu::File Class Reference

File with the Resource interface. More...

+ Inheritance diagram for Gosu::File:

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)
 
- Public Member Functions inherited from Gosu::Resource
 Resource ()
 
virtual ~Resource ()
 
Reader frontReader () const
 Convenience: Creates a new Reader that reads from the start of the resource.
 
Writer backWriter ()
 Convenience: Creates a new Writer that appends data at the end of the resource.
 

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: