PageRenderTime 81ms CodeModel.GetById 40ms app.highlight 2ms RepoModel.GetById 38ms 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
 1#ifndef __MORDOR_DEFLATE_STREAM_H__
 2#define __MORDOR_DEFLATE_STREAM_H__
 3// Copyright (c) 2009 - Mozy, Inc.
 4
 5#include "zlib.h"
 6
 7namespace Mordor {
 8
 9class DeflateStream : public ZlibStream
10{
11public:
12    DeflateStream(Stream::ptr parent, int level, int windowBits, int memlevel, Strategy strategy, bool own = true, bool invert = false)
13        : ZlibStream(parent, own, DEFLATE, level, windowBits, memlevel, strategy, invert)
14    {}
15
16    DeflateStream(Stream::ptr parent, bool own = true, bool invert = false)
17        : ZlibStream(parent, own, DEFLATE, Z_DEFAULT_COMPRESSION, 15, 8, DEFAULT, invert)
18    {}
19};
20
21}
22
23#endif