Compressed input stream.  
 More...
#include <gf/Streams.h>
◆ CompressedInputStream()
  
  
      
        
          | gf::CompressedInputStream::CompressedInputStream  | 
          ( | 
          InputStream &  | 
          compressed | ) | 
           | 
         
       
   | 
  
explicit   | 
  
 
Constructor. 
- Parameters
 - 
  
    | compressed | The compressed original stream  | 
  
   
 
 
◆ ~CompressedInputStream()
  
  
      
        
          | virtual gf::CompressedInputStream::~CompressedInputStream  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
◆ isFinished()
  
  
      
        
          | virtual bool gf::CompressedInputStream::isFinished  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
overridevirtual   | 
  
 
Tell if the stream is at the end. 
- Returns
 - A boolean indicating the end of the stream 
 
Implements gf::InputStream.
 
 
◆ read()
  
  
      
        
          | virtual std::size_t gf::CompressedInputStream::read  | 
          ( | 
          BufferRef< uint8_t >  | 
          buffer | ) | 
           | 
         
       
   | 
  
overridevirtual   | 
  
 
Read data from the stream. 
After reading, the stream's reading position must be advanced by the amount of bytes read.
- Parameters
 - 
  
    | buffer | The buffer where to copy the read data | 
  
   
- Returns
 - The number of bytes actually read 
 
Implements gf::InputStream.
 
 
◆ seek()
  
  
      
        
          | virtual void gf::CompressedInputStream::seek  | 
          ( | 
          std::ptrdiff_t  | 
          position | ) | 
           | 
         
       
   | 
  
overridevirtual   | 
  
 
Change the current reading position. 
- Parameters
 - 
  
    | position | The position to seek to, from the beginning  | 
  
   
Implements gf::InputStream.
 
 
◆ skip()
  
  
      
        
          | virtual void gf::CompressedInputStream::skip  | 
          ( | 
          std::ptrdiff_t  | 
          position | ) | 
           | 
         
       
   | 
  
overridevirtual   | 
  
 
Change the current reading position. 
- Parameters
 - 
  
    | position | The position to seek to, from the current position  | 
  
   
Implements gf::InputStream.