Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::GZipFileInputStream Class Reference

GZip file input stream (decompression) More...

#include <GZipFileInputStream.h>

Inheritance diagram for sese::GZipFileInputStream:
sese::io::InputStream

Public Types

using Ptr = std::shared_ptr<GZipFileInputStream>
 
- Public Types inherited from sese::io::InputStream
typedef std::shared_ptr< InputStreamPtr
 

Public Member Functions

 ~GZipFileInputStream () override=default
 
int64_t read (void *buffer, size_t length) override
 
void close () noexcept
 
- Public Member Functions inherited from sese::io::InputStream
virtual ~InputStream () noexcept=default
 

Static Public Member Functions

static void deleter (GZipFileInputStream *data) noexcept
 
static GZipFileInputStream::Ptr create (const char *file) noexcept
 

Private Member Functions

 GZipFileInputStream ()=default
 

Private Attributes

void * gzFile = nullptr
 

Detailed Description

GZip file input stream (decompression)

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ ~GZipFileInputStream()

sese::GZipFileInputStream::~GZipFileInputStream ( )
overridedefault

◆ GZipFileInputStream()

sese::GZipFileInputStream::GZipFileInputStream ( )
privatedefault

Member Function Documentation

◆ close()

void sese::GZipFileInputStream::close ( )
noexcept

◆ create()

sese::GZipFileInputStream::Ptr sese::GZipFileInputStream::create ( const char * file)
staticnoexcept

Create file input stream object

Parameters
fileRelative or absolute path of the file
Return values
nullptrFailed to open file

References gzFile.

◆ deleter()

void sese::GZipFileInputStream::deleter ( GZipFileInputStream * data)
staticnoexcept

◆ read()

int64_t sese::GZipFileInputStream::read ( void * buffer,
size_t length )
overridevirtual

Implements sese::io::InputStream.

References gzFile.

Member Data Documentation

◆ gzFile

void* sese::GZipFileInputStream::gzFile = nullptr
private

Referenced by create(), and read().


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