summaryrefslogtreecommitdiff
path: root/src/BufferedFile.cc
Commit message (Collapse)AuthorAgeFilesLines
* make clang-format using clang-format-3.6Tatsuhiro Tsujikawa2015-12-271-37/+19
|
* mingw32: Fix bug that aria2 does not read piped stdinTatsuhiro Tsujikawa2014-07-301-1/+3
|
* Convert most 0/NULL pointers to nullptrNils Maier2013-08-201-1/+1
| | | | Courtesy of llvm cpp11-migrate 3.3
* Remove open_ member from BufferedFile and GZipFileTatsuhiro Tsujikawa2013-05-231-7/+7
| | | | Just checking fp_ is sufficient.
* Introduce IOFile abstract class to refactor BufferedFile and GZipFileTatsuhiro Tsujikawa2013-05-231-73/+19
| | | | | | 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.
* Support for gzipped -i and --save-sessionNils Maier2013-03-021-7/+7
| | | | | | | | | | | 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.
* Do not use a virtual varargs functionNils Maier2013-03-021-6/+2
| | | | This stuff breaks in some compiler (configurations)
* Fixed segmentation fault if fp_ is NULLTatsuhiro Tsujikawa2012-12-111-2/+2
|
* Console color outputTatsuhiro Tsujikawa2012-12-081-2/+8
| | | | Log level and download result string is now colored.
* Fixed compile error with mingwTatsuhiro Tsujikawa2012-10-311-1/+1
|
* Made BufferedFile ctor take const char* argsTatsuhiro Tsujikawa2012-09-251-9/+13
|
* Added BufferedFile::getLine() to make reading one line more flexible.Tatsuhiro Tsujikawa2012-02-291-0/+22
| | | | Fixes bug#3495336
* Use global::cout to output string to stdout.Tatsuhiro Tsujikawa2011-08-091-0/+5
| | | | | | | In MinGW32 build, global::cout is WinConsoleFile. When outputing to console, it uses WriteConsoleW, so Unicode characters are written. Fixed memory leak in WChar<->MultiByte conversion functions. The portion of code which uses std::cout is rewritten to use global::cout.
* Added printf and flush method to BufferedFile.Tatsuhiro Tsujikawa2011-08-071-0/+20
|
* Read aria2.conf using BufferedFileTatsuhiro Tsujikawa2011-08-071-0/+16
| | | | Read aria2.conf using BufferedFile. Added BufferedFile::transfer().
* Removed feof from operator unspecified_bool_type. Added eof().Tatsuhiro Tsujikawa2011-08-071-1/+6
| | | | | In BufferedFile, removed feof from operator unspecified_bool_type. EOF can be queried separately using newly added eof().
* Added fopen/fread/fwrite/fgets wrapper class.Tatsuhiro Tsujikawa2011-08-061-0/+100