Input source for reading byte data from a gzip/zlib-compressed source.
This input source is a wrapper that takes some other input source (FileInputSource, StringInputSource, StreamInputSource, etc), and de-compresses using gzip/zlib on the fly while reading.
The class can be moved, but not copied, because of the internal state that is kept for decompression, and which would mess up the input source if copied.
Definition at line 56 of file gzip_input_source.hpp.
|
| GzipInputSource (GzipInputSource &&)=default |
|
| GzipInputSource (GzipInputSource const &)=delete |
|
| GzipInputSource (std::shared_ptr< BaseInputSource > input_source, Format format=Format::kAutomatic) |
| Construct the input source using another input source (FileInputSource, StringInputSource, StreamInputSource, etc), and add gzip/zlib decompression on top, using the specified GzipInputSource::Format. More...
|
|
| ~GzipInputSource () override |
|
GzipInputSource & | operator= (GzipInputSource &&)=default |
|
GzipInputSource & | operator= (GzipInputSource const &)=delete |
|
| BaseInputSource ()=default |
|
| BaseInputSource (BaseInputSource &&)=default |
|
| BaseInputSource (BaseInputSource const &)=default |
|
virtual | ~BaseInputSource () |
|
bool | is_trivial () const |
| Return whether reading from this source is trivial, such as reading from a file, or involves more complex operations, such as reading from a compressed input that needs to be decompressed first. More...
|
|
BaseInputSource & | operator= (BaseInputSource &&)=default |
|
BaseInputSource & | operator= (BaseInputSource const &)=default |
|
size_t | read (char *buffer, size_t size) |
| Read size many bytes into the char buffer . More...
|
|
std::string | source_name () const |
| Get a name of the input source. This is intended for user output. More...
|
|
std::string | source_string () const |
| Get a string representing the input source. This is intended for the reader classes, which for example might want to examine the input file name. More...
|
|