summaryrefslogtreecommitdiff
path: root/src/GZipFile.cc
Commit message (Collapse)AuthorAgeFilesLines
* make clang-format using clang-format-3.6Tatsuhiro Tsujikawa2015-12-271-37/+25
|
* Use user-defined literal for k, m, and g (powers of 1024)Tatsuhiro Tsujikawa2015-06-211-1/+1
|
* mingw32: Fix bug that aria2 does not read piped stdinTatsuhiro Tsujikawa2014-07-301-2/+3
|
* Fix mingw32 build with gcc 4.8.2Tatsuhiro Tsujikawa2014-03-241-21/+2
| | | | | | | | | Now mingw-w64 C++ compiler defines __USE_MINGW_ANSI_STDIO to 1, we have to follow it as well. We hope that mingw version of stdio function behaves like Linux ones. We have not tested them thoroughly yet. pthread for windows defines its own HAVE_STRUCT_TIMESPEC macro. To avoid warning, we rename our version of it as HAVE_A2_STRUCT_TIMESPEC.
* Convert most 0/NULL pointers to nullptrNils Maier2013-08-201-3/+3
| | | | Courtesy of llvm cpp11-migrate 3.3
* Remove open_ member from BufferedFile and GZipFileTatsuhiro Tsujikawa2013-05-231-17/+17
| | | | Just checking fp_ is sufficient.
* Introduce IOFile abstract class to refactor BufferedFile and GZipFileTatsuhiro Tsujikawa2013-05-231-7/+22
| | | | | | IOFile provides the same interface of old BufferedFile. It provides extension points as pure virtual functions. Those functions are implemented by 2 concrete subclasses: BufferedFile and GZipFile.
* Fix position of parenthesisTatsuhiro Tsujikawa2013-05-231-1/+1
|
* Close GZipFiles in the d'torNils Maier2013-04-281-0/+1
|
* GZipFile: Move buf_, buflen_ to initializer listTatsuhiro Tsujikawa2013-03-031-3/+2
|
* Rewrite GZipFile::vprintf()Tatsuhiro Tsujikawa2013-03-031-17/+44
| | | | | | MINGW does not have vasprintf(), so we use _vscprintf() and vsnprintf(). We want to reuse buffer, so for non-MINGW we use vsnprintf() with retrying doubling buffer size if output is truncated.
* Support for gzipped -i and --save-sessionNils Maier2013-03-021-0/+161
Saved sessions may very large, as in hundreds and even thousands of megabyte when dealing with large queues. Add support to save and reload sessions to gzipped files, when libz is available. The session serializer will output gzipped contents when the file ends with .gz, while the input file reader (UriListParser) will accept whatever is thrown at it.