PageRenderTime 15ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/mordor/streams/deflate.h

http://github.com/mozy/mordor
C Header | 23 lines | 16 code | 6 blank | 1 comment | 0 complexity | f2d2609b37f661126af0a7d8ecd1c358 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. #ifndef __MORDOR_DEFLATE_STREAM_H__
  2. #define __MORDOR_DEFLATE_STREAM_H__
  3. // Copyright (c) 2009 - Mozy, Inc.
  4. #include "zlib.h"
  5. namespace Mordor {
  6. class DeflateStream : public ZlibStream
  7. {
  8. public:
  9. DeflateStream(Stream::ptr parent, int level, int windowBits, int memlevel, Strategy strategy, bool own = true, bool invert = false)
  10. : ZlibStream(parent, own, DEFLATE, level, windowBits, memlevel, strategy, invert)
  11. {}
  12. DeflateStream(Stream::ptr parent, bool own = true, bool invert = false)
  13. : ZlibStream(parent, own, DEFLATE, Z_DEFAULT_COMPRESSION, 15, 8, DEFAULT, invert)
  14. {}
  15. };
  16. }
  17. #endif