diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-06-21 18:04:30 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-06-21 19:29:54 +0900 |
| commit | 318c804504e32b7a0bbdbb35336d2e918000d80a (patch) | |
| tree | fad396aee04c44a29ee79b33e1675db2275146c0 /src/GZipDecodingStreamFilter.h | |
| parent | 8ba9b0474747185708a25943fb6d2f97b3d9b17f (diff) | |
Use user-defined literal for k, m, and g (powers of 1024)
Diffstat (limited to 'src/GZipDecodingStreamFilter.h')
| -rw-r--r-- | src/GZipDecodingStreamFilter.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/GZipDecodingStreamFilter.h b/src/GZipDecodingStreamFilter.h index 259379e4..6707e974 100644 --- a/src/GZipDecodingStreamFilter.h +++ b/src/GZipDecodingStreamFilter.h @@ -38,6 +38,8 @@ #include "StreamFilter.h" #include <zlib.h> +#include "a2functional.h" + namespace aria2 { // GZipDecodingStreamFilter can decode both gzip and deflate format. @@ -49,7 +51,7 @@ private: size_t bytesProcessed_; - static const size_t OUTBUF_LENGTH = 16*1024; + static const size_t OUTBUF_LENGTH = 16_k; public: GZipDecodingStreamFilter (std::unique_ptr<StreamFilter> delegate = nullptr); |
