1 #ifndef GENESIS_UTILS_IO_GZIP_INPUT_SOURCE_H_ 2 #define GENESIS_UTILS_IO_GZIP_INPUT_SOURCE_H_ 100 std::shared_ptr<BaseInputSource> input_source,
121 static const size_t BlockLength = 1 << 20;
126 size_t read_(
char* buffer,
size_t size )
override;
131 std::string source_name_()
const override 133 return format_name_ +
"-compressed " + input_source_->source_name();
140 std::string source_string_()
const override;
145 int get_format_(
Format format )
const;
150 std::string translate_format_(
Format format )
const;
156 std::shared_ptr<BaseInputSource> input_source_;
157 std::string format_name_;
168 std::unique_ptr<ZlibData, void (*)(ZlibData *)> zlib_data_;
175 #endif // include guard
Container namespace for all symbols of genesis in order to keep them separate when used as a library...