![]()  | 
  
    Gamedev Framework (gf)
    0.14.0
    
   A C++14 framework for 2D games 
   | 
 
File based input stream. More...
#include <gf/Streams.h>

Public Member Functions | |
| FileInputStream (const Path &path) | |
| Constructor.  More... | |
| ~FileInputStream () | |
| Destructor.  More... | |
| std::size_t | read (BufferRef< uint8_t > buffer) override | 
| Read data from the stream.  More... | |
| void | seek (std::ptrdiff_t position) override | 
| Change the current reading position.  More... | |
| void | skip (std::ptrdiff_t position) override | 
| Change the current reading position.  More... | |
| bool | isFinished () override | 
| Tell if the stream is at the end.  More... | |
  Public Member Functions inherited from gf::InputStream | |
| InputStream ()=default | |
| Default constructor.  More... | |
| InputStream (const InputStream &)=delete | |
| Deleted copy constructor.  More... | |
| InputStream & | operator= (const InputStream &)=delete | 
| Deleted copy assignment.  More... | |
| virtual | ~InputStream () | 
| Destructor.  More... | |
| std::size_t | read (uint8_t &byte) | 
| Read a single byte from the stream.  More... | |
File based input stream.
      
  | 
  explicit | 
Constructor.
The constructor opens the file. If the file is not opened, an exception is thrown.
| path | The path to the file | 
| gf::FileInputStream::~FileInputStream | ( | ) | 
Destructor.
The destructor closes the file.
      
  | 
  overridevirtual | 
Tell if the stream is at the end.
Implements gf::InputStream.
      
  | 
  overridevirtual | 
Read data from the stream.
After reading, the stream's reading position must be advanced by the amount of bytes read.
| buffer | The buffer where to copy the read data | 
Implements gf::InputStream.
      
  | 
  overridevirtual | 
Change the current reading position.
| position | The position to seek to, from the beginning | 
Implements gf::InputStream.
      
  | 
  overridevirtual | 
Change the current reading position.
| position | The position to seek to, from the current position | 
Implements gf::InputStream.
 1.8.13