PageRenderTime 173ms CodeModel.GetById 77ms app.highlight 2ms RepoModel.GetById 49ms app.codeStats 0ms

/mordor/streams/gzip.h

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