InputStream reading from memory.  
 More...
#include <input_stream.h>
InputStream reading from memory. 
Definition at line 75 of file input_stream.h.
◆ MemoryInputStream()
  
  | 
        
          | Beatmup::MemoryInputStream::MemoryInputStream | ( | const void * | data, |  
          |  |  | msize | size |  
          |  | ) |  |  |  | inline | 
 
 
◆ operator()()
  
  | 
        
          | bool MemoryInputStream::operator() | ( | void * | buffer, |  
          |  |  | msize | bytes |  
          |  | ) |  |  |  | virtual | 
 
Reads a given number of bytes into a specific memory location. 
- Parameters
- 
  
    | [in] | buffer | The address to store the data to |  | [in] | bytes | Number of bytes to read |  
 
- Returns
- trueon success.
Implements Beatmup::InputStream.
Definition at line 59 of file input_stream.cpp.
uint32_t msize
memory size
 
 
 
◆ seek()
  
  | 
        
          | bool MemoryInputStream::seek | ( | msize | pos | ) |  |  | virtual | 
 
Moves the read pointer to a given position in the stream. 
- Parameters
- 
  
    | pos | The position in bytes from the beginning of the stream |  
 
- Returns
- trueon success.
Implements Beatmup::InputStream.
Definition at line 66 of file input_stream.cpp.
 
 
◆ eof()
  
  | 
        
          | bool MemoryInputStream::eof | ( |  | ) | const |  | virtual | 
 
 
◆ data
  
  | 
        
          | const char* Beatmup::MemoryInputStream::data |  | private | 
 
 
◆ size
  
  | 
        
          | const msize Beatmup::MemoryInputStream::size |  | private | 
 
 
◆ ptr
  
  | 
        
          | msize Beatmup::MemoryInputStream::ptr |  | private | 
 
 
The documentation for this class was generated from the following files: