Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > 0a67b807a02637f2cae68649d519a89d > files > 2377

libcryptopp-devel-7.0.0-1.mga7.armv7hl.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Crypto++: gzip.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Crypto++
   &#160;<span id="projectnumber">7.0</span>
   </div>
   <div id="projectbrief">Free&nbsp;C&#43;&#43;&nbsp;class&nbsp;library&nbsp;of&nbsp;cryptographic&nbsp;schemes</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">gzip.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="gzip_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">// gzip.h - originally written and placed in the public domain by Wei Dai</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">/// \file gzip.h</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">/// \brief GZIP compression and decompression (RFC 1952)</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#ifndef CRYPTOPP_GZIP_H</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#define CRYPTOPP_GZIP_H</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="cryptlib_8h.html">cryptlib.h</a>&quot;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="zdeflate_8h.html">zdeflate.h</a>&quot;</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;zinflate.h&quot;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="crc_8h.html">crc.h</a>&quot;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;NAMESPACE_BEGIN(<a class="code" href="namespace_crypto_p_p.html">CryptoPP</a>)</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">/// \brief GZIP Compression (RFC 1952)</span></div><div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="class_gzip.html">   17</a></span>&#160;<span class="comment"></span>class <a class="code" href="class_gzip.html">Gzip</a> : public <a class="code" href="class_deflator.html">Deflator</a></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;{</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="keyword">public</span>:<span class="comment"></span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">    /// \brief Construct a Gzip compressor</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">    /// \param attachment an attached transformation</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">    /// \param deflateLevel the deflate level</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">    /// \param log2WindowSize the window size</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">    /// \param detectUncompressible flag to detect if data is compressible</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">    /// \details detectUncompressible makes it faster to process uncompressible files, but</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment">    ///   if a file has both compressible and uncompressible parts, it may fail to compress</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment">    ///   some of the compressible parts.</span></div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="class_gzip.html#a1d1b762af2a7ae5053e2870ef57e313b">   28</a></span>&#160;<span class="comment"></span>    <a class="code" href="class_gzip.html#a1d1b762af2a7ae5053e2870ef57e313b">Gzip</a>(<a class="code" href="class_buffered_transformation.html">BufferedTransformation</a> *attachment=NULLPTR, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> deflateLevel=DEFAULT_DEFLATE_LEVEL, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> log2WindowSize=DEFAULT_LOG2_WINDOW_SIZE, <span class="keywordtype">bool</span> detectUncompressible=<span class="keyword">true</span>)</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;        : <a class="code" href="class_deflator.html">Deflator</a>(attachment, deflateLevel, log2WindowSize, detectUncompressible), m_totalLen(0), m_filetime(0) { }</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment">    /// \brief Construct a Gzip compressor</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment">    /// \param parameters a set of NameValuePairs to initialize this object</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment">    /// \param attachment an attached transformation</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment">    /// \details Possible parameter names: Log2WindowSize, DeflateLevel, DetectUncompressible</span></div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="class_gzip.html#ad5db66366a8337baa0bb39402e6e6d73">   35</a></span>&#160;<span class="comment"></span>    <a class="code" href="class_gzip.html#ad5db66366a8337baa0bb39402e6e6d73">Gzip</a>(<span class="keyword">const</span> <a class="code" href="class_name_value_pairs.html">NameValuePairs</a> &amp;parameters, <a class="code" href="class_buffered_transformation.html">BufferedTransformation</a> *attachment=NULLPTR)</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        : <a class="code" href="class_deflator.html">Deflator</a>(parameters, attachment), m_totalLen(0), m_filetime(0)</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    {</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;        IsolatedInitialize(parameters);</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    }</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="comment">    /// \param filetime the filetime to set in the header. The application is responsible for setting it.</span></div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="class_gzip.html#a5f614614aee942a6548adf8723d9bfda">   42</a></span>&#160;<span class="comment"></span>    <span class="keywordtype">void</span> <a class="code" href="class_gzip.html#a5f614614aee942a6548adf8723d9bfda">SetFiletime</a>(word32 filetime) { m_filetime = filetime; }</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="comment">    /// \param filename the original filename to set in the header. The application is responsible for setting it.</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="comment">    ///        RFC 1952 requires a ISO/IEC 8859-1 encoding.</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="comment">    /// \param throwOnEncodingError if throwOnEncodingError is true, then the filename is checked to ensure it is</span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="comment">    ///        ISO/IEC 8859-1 encoded. If the filename does not adhere to ISO/IEC 8859-1, then a InvalidDataFormat</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="comment">    ///        is thrown. If throwOnEncodingError is false then the filename is not checked.</span></div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="comment"></span>    <span class="keywordtype">void</span> SetFilename(<span class="keyword">const</span> std::string&amp; filename, <span class="keywordtype">bool</span> throwOnEncodingError = <span class="keyword">false</span>);</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="comment">    /// \param comment the comment to set in the header. The application is responsible for setting it.</span></div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="comment">    ///        RFC 1952 requires a ISO/IEC 8859-1 encoding.</span></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="comment">    /// \param throwOnEncodingError if throwOnEncodingError is true, then the comment is checked to ensure it is</span></div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="comment">    ///        ISO/IEC 8859-1 encoded. If the comment does not adhere to ISO/IEC 8859-1, then a InvalidDataFormat</span></div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="comment">    ///        is thrown. If throwOnEncodingError is false then the comment is not checked.</span></div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="comment"></span>    <span class="keywordtype">void</span> SetComment(<span class="keyword">const</span> std::string&amp; comment, <span class="keywordtype">bool</span> throwOnEncodingError = <span class="keyword">false</span>);</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="keywordtype">void</span> IsolatedInitialize(<span class="keyword">const</span> <a class="code" href="class_name_value_pairs.html">NameValuePairs</a> &amp;parameters);</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keyword">enum</span> {MAGIC1=0x1f, MAGIC2=0x8b,   <span class="comment">// flags for the header</span></div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;          DEFLATED=8, FAST=4, SLOW=2};</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keyword">enum</span> FLAG_MASKS {</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        FILENAME=8, COMMENTS=16};</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <span class="keywordtype">void</span> WritePrestreamHeader();</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="keywordtype">void</span> ProcessUncompressedData(<span class="keyword">const</span> byte *<span class="keywordtype">string</span>, <span class="keywordtype">size_t</span> length);</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <span class="keywordtype">void</span> WritePoststreamTail();</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    word32 m_totalLen;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <a class="code" href="class_c_r_c32.html">CRC32</a> m_crc;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    word32 m_filetime;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    std::string m_filename;</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    std::string m_comment;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;};</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="comment">/// \brief GZIP Decompression (RFC 1952)</span></div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="class_gunzip.html">   80</a></span>&#160;<span class="comment"></span><span class="keyword">class </span><a class="code" href="class_gunzip.html">Gunzip</a> : <span class="keyword">public</span> <a class="code" href="class_inflator.html">Inflator</a></div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;{</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <span class="keyword">typedef</span> <a class="code" href="class_inflator_1_1_err.html">Inflator::Err</a> <a class="code" href="class_inflator_1_1_err.html">Err</a>;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="comment">    /// \brief Exception thrown when a header decoding error occurs</span></div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="class_gunzip_1_1_header_err.html">   86</a></span>&#160;<span class="comment"></span>    <span class="keyword">class </span><a class="code" href="class_gunzip_1_1_header_err.html">HeaderErr</a> : <span class="keyword">public</span> <a class="code" href="class_inflator_1_1_err.html">Err</a> {<span class="keyword">public</span>: <a class="code" href="class_gunzip_1_1_header_err.html">HeaderErr</a>() : <a class="code" href="class_inflator_1_1_err.html">Err</a>(<a class="code" href="class_exception.html#a8e53909d979479380e0274807c074c0aa3a0352964781e7712b21dbb70ffbe646">INVALID_DATA_FORMAT</a>, <span class="stringliteral">&quot;Gunzip: header decoding error&quot;</span>) {}};<span class="comment"></span></div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="comment">    /// \brief Exception thrown when the tail is too short</span></div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="class_gunzip_1_1_tail_err.html">   88</a></span>&#160;<span class="comment"></span>    <span class="keyword">class </span><a class="code" href="class_gunzip_1_1_tail_err.html">TailErr</a> : <span class="keyword">public</span> <a class="code" href="class_inflator_1_1_err.html">Err</a> {<span class="keyword">public</span>: <a class="code" href="class_gunzip_1_1_tail_err.html">TailErr</a>() : <a class="code" href="class_inflator_1_1_err.html">Err</a>(<a class="code" href="class_exception.html#a8e53909d979479380e0274807c074c0aa3a0352964781e7712b21dbb70ffbe646">INVALID_DATA_FORMAT</a>, <span class="stringliteral">&quot;Gunzip: tail too short&quot;</span>) {}};<span class="comment"></span></div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="comment">    /// \brief Exception thrown when a CRC error occurs</span></div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="class_gunzip_1_1_crc_err.html">   90</a></span>&#160;<span class="comment"></span>    <span class="keyword">class </span><a class="code" href="class_gunzip_1_1_crc_err.html">CrcErr</a> : <span class="keyword">public</span> <a class="code" href="class_inflator_1_1_err.html">Err</a> {<span class="keyword">public</span>: <a class="code" href="class_gunzip_1_1_crc_err.html">CrcErr</a>() : <a class="code" href="class_inflator_1_1_err.html">Err</a>(<a class="code" href="class_exception.html#a8e53909d979479380e0274807c074c0aa77a639a803cf53052f9c76a0354247e6">DATA_INTEGRITY_CHECK_FAILED</a>, <span class="stringliteral">&quot;Gunzip: CRC check error&quot;</span>) {}};<span class="comment"></span></div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="comment">    /// \brief Exception thrown when a length error occurs</span></div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="class_gunzip_1_1_length_err.html">   92</a></span>&#160;<span class="comment"></span>    <span class="keyword">class </span><a class="code" href="class_gunzip_1_1_length_err.html">LengthErr</a> : <span class="keyword">public</span> <a class="code" href="class_inflator_1_1_err.html">Err</a> {<span class="keyword">public</span>: <a class="code" href="class_gunzip_1_1_length_err.html">LengthErr</a>() : <a class="code" href="class_inflator_1_1_err.html">Err</a>(<a class="code" href="class_exception.html#a8e53909d979479380e0274807c074c0aa77a639a803cf53052f9c76a0354247e6">DATA_INTEGRITY_CHECK_FAILED</a>, <span class="stringliteral">&quot;Gunzip: length check error&quot;</span>) {}};</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="comment">    /// \brief Construct a Gunzip decompressor</span></div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="comment">    /// \param attachment an attached transformation</span></div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="comment">    /// \param repeat decompress multiple compressed streams in series</span></div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="comment">    /// \param autoSignalPropagation 0 to turn off MessageEnd signal</span></div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="comment"></span>    <a class="code" href="class_gunzip.html#a30ad6514a475206a6b60ccf81693323b">Gunzip</a>(<a class="code" href="class_buffered_transformation.html">BufferedTransformation</a> *attachment = NULLPTR, <span class="keywordtype">bool</span> repeat = <span class="keyword">false</span>, <span class="keywordtype">int</span> autoSignalPropagation = -1);</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="comment">    /// \return the filetime of the stream as set in the header. The application is responsible for setting it on the decompressed file.</span></div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="class_gunzip.html#a629ad38affaeaae9b993bd4c9227d484">  101</a></span>&#160;<span class="comment"></span>    word32 <a class="code" href="class_gunzip.html#a629ad38affaeaae9b993bd4c9227d484">GetFiletime</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_filetime; }</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="comment">    /// \return the filename of the stream as set in the header. The application is responsible for setting it on the decompressed file.</span></div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="comment">    /// \param throwOnEncodingError if throwOnEncodingError is true, then the filename is checked to ensure it is</span></div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="comment">    ///        ISO/IEC 8859-1 encoded. If the filename does not adhere to ISO/IEC 8859-1, then a InvalidDataFormat is thrown.</span></div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="comment">    ///        If throwOnEncodingError is false then the filename is not checked.</span></div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="comment"></span>    <span class="keyword">const</span> std::string&amp; <a class="code" href="class_gunzip.html#aea40ede3804135ad1020dac2e7a3830a">GetFilename</a>(<span class="keywordtype">bool</span> throwOnEncodingError = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="comment">    /// \return the comment of the stream as set in the header.</span></div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="comment">    /// \param throwOnEncodingError if throwOnEncodingError is true, then the comment is checked to ensure it is</span></div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="comment">    ///        ISO/IEC 8859-1 encoded. If the comment does not adhere to ISO/IEC 8859-1, then a InvalidDataFormat is thrown.</span></div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="comment">    ///        If throwOnEncodingError is false then the comment is not checked.</span></div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="comment"></span>    <span class="keyword">const</span> std::string&amp; <a class="code" href="class_gunzip.html#ae52ec4710236071011dcd1b5ef21045d">GetComment</a>(<span class="keywordtype">bool</span> throwOnEncodingError = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <span class="keyword">enum</span> {<span class="comment"></span></div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="comment">        /// \brief First header magic value</span></div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="comment"></span>        MAGIC1=0x1f,<span class="comment"></span></div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="comment">        /// \brief Second header magic value</span></div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="comment"></span>        MAGIC2=0x8b,<span class="comment"></span></div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;<span class="comment">        /// \brief Deflated flag</span></div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="comment"></span>        DEFLATED=8</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    };</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    <span class="keyword">enum</span> FLAG_MASKS {</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;        CONTINUED=2, EXTRA_FIELDS=4, FILENAME=8, COMMENTS=16, ENCRYPTED=32};</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> MaxPrestreamHeaderSize()<span class="keyword"> const </span>{<span class="keywordflow">return</span> 1024;}</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    <span class="keywordtype">void</span> ProcessPrestreamHeader();</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <span class="keywordtype">void</span> ProcessDecompressedData(<span class="keyword">const</span> byte *<span class="keywordtype">string</span>, <span class="keywordtype">size_t</span> length);</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> MaxPoststreamTailSize()<span class="keyword"> const </span>{<span class="keywordflow">return</span> 8;}</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    <span class="keywordtype">void</span> ProcessPoststreamTail();</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    word32 m_length;</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    <a class="code" href="class_c_r_c32.html">CRC32</a> m_crc;</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    word32 m_filetime;</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    std::string m_filename;</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    std::string m_comment;</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;};</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;NAMESPACE_END</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="class_gzip_html_a5f614614aee942a6548adf8723d9bfda"><div class="ttname"><a href="class_gzip.html#a5f614614aee942a6548adf8723d9bfda">Gzip::SetFiletime</a></div><div class="ttdeci">void SetFiletime(word32 filetime)</div><div class="ttdef"><b>Definition:</b> <a href="gzip_8h_source.html#l00042">gzip.h:42</a></div></div>
<div class="ttc" id="class_gunzip_html"><div class="ttname"><a href="class_gunzip.html">Gunzip</a></div><div class="ttdoc">GZIP Decompression (RFC 1952) </div><div class="ttdef"><b>Definition:</b> <a href="gzip_8h_source.html#l00080">gzip.h:80</a></div></div>
<div class="ttc" id="cryptlib_8h_html"><div class="ttname"><a href="cryptlib_8h.html">cryptlib.h</a></div><div class="ttdoc">Abstract base classes that provide a uniform interface to this library. </div></div>
<div class="ttc" id="class_gunzip_1_1_crc_err_html"><div class="ttname"><a href="class_gunzip_1_1_crc_err.html">Gunzip::CrcErr</a></div><div class="ttdoc">Exception thrown when a CRC error occurs. </div><div class="ttdef"><b>Definition:</b> <a href="gzip_8h_source.html#l00090">gzip.h:90</a></div></div>
<div class="ttc" id="class_deflator_html"><div class="ttname"><a href="class_deflator.html">Deflator</a></div><div class="ttdoc">DEFLATE compressor (RFC 1951) </div><div class="ttdef"><b>Definition:</b> <a href="zdeflate_8h_source.html#l00075">zdeflate.h:75</a></div></div>
<div class="ttc" id="class_gunzip_1_1_length_err_html"><div class="ttname"><a href="class_gunzip_1_1_length_err.html">Gunzip::LengthErr</a></div><div class="ttdoc">Exception thrown when a length error occurs. </div><div class="ttdef"><b>Definition:</b> <a href="gzip_8h_source.html#l00092">gzip.h:92</a></div></div>
<div class="ttc" id="class_inflator_1_1_err_html"><div class="ttname"><a href="class_inflator_1_1_err.html">Inflator::Err</a></div><div class="ttdef"><b>Definition:</b> <a href="zinflate_8h_source.html#l00092">zinflate.h:92</a></div></div>
<div class="ttc" id="crc_8h_html"><div class="ttname"><a href="crc_8h.html">crc.h</a></div><div class="ttdoc">Classes for CRC-32 and CRC-32C checksum algorithm. </div></div>
<div class="ttc" id="class_buffered_transformation_html"><div class="ttname"><a href="class_buffered_transformation.html">BufferedTransformation</a></div><div class="ttdoc">Interface for buffered transformations. </div><div class="ttdef"><b>Definition:</b> <a href="cryptlib_8h_source.html#l01545">cryptlib.h:1545</a></div></div>
<div class="ttc" id="zdeflate_8h_html"><div class="ttname"><a href="zdeflate_8h.html">zdeflate.h</a></div><div class="ttdoc">DEFLATE compression and decompression (RFC 1951) </div></div>
<div class="ttc" id="class_exception_html_a8e53909d979479380e0274807c074c0aa77a639a803cf53052f9c76a0354247e6"><div class="ttname"><a href="class_exception.html#a8e53909d979479380e0274807c074c0aa77a639a803cf53052f9c76a0354247e6">Exception::DATA_INTEGRITY_CHECK_FAILED</a></div><div class="ttdoc">Data integerity check, such as CRC or MAC, failed. </div><div class="ttdef"><b>Definition:</b> <a href="cryptlib_8h_source.html#l00168">cryptlib.h:168</a></div></div>
<div class="ttc" id="class_gunzip_html_a30ad6514a475206a6b60ccf81693323b"><div class="ttname"><a href="class_gunzip.html#a30ad6514a475206a6b60ccf81693323b">Gunzip::Gunzip</a></div><div class="ttdeci">Gunzip(BufferedTransformation *attachment=NULL, bool repeat=false, int autoSignalPropagation=-1)</div><div class="ttdoc">Construct a Gunzip decompressor. </div><div class="ttdef"><b>Definition:</b> <a href="gzip_8cpp_source.html#l00102">gzip.cpp:102</a></div></div>
<div class="ttc" id="class_exception_html_a8e53909d979479380e0274807c074c0aa3a0352964781e7712b21dbb70ffbe646"><div class="ttname"><a href="class_exception.html#a8e53909d979479380e0274807c074c0aa3a0352964781e7712b21dbb70ffbe646">Exception::INVALID_DATA_FORMAT</a></div><div class="ttdoc">Input data was received that did not conform to expected format. </div><div class="ttdef"><b>Definition:</b> <a href="cryptlib_8h_source.html#l00170">cryptlib.h:170</a></div></div>
<div class="ttc" id="class_gunzip_html_a629ad38affaeaae9b993bd4c9227d484"><div class="ttname"><a href="class_gunzip.html#a629ad38affaeaae9b993bd4c9227d484">Gunzip::GetFiletime</a></div><div class="ttdeci">word32 GetFiletime() const</div><div class="ttdef"><b>Definition:</b> <a href="gzip_8h_source.html#l00101">gzip.h:101</a></div></div>
<div class="ttc" id="class_gunzip_1_1_tail_err_html"><div class="ttname"><a href="class_gunzip_1_1_tail_err.html">Gunzip::TailErr</a></div><div class="ttdoc">Exception thrown when the tail is too short. </div><div class="ttdef"><b>Definition:</b> <a href="gzip_8h_source.html#l00088">gzip.h:88</a></div></div>
<div class="ttc" id="class_gunzip_1_1_header_err_html"><div class="ttname"><a href="class_gunzip_1_1_header_err.html">Gunzip::HeaderErr</a></div><div class="ttdoc">Exception thrown when a header decoding error occurs. </div><div class="ttdef"><b>Definition:</b> <a href="gzip_8h_source.html#l00086">gzip.h:86</a></div></div>
<div class="ttc" id="class_gzip_html_ad5db66366a8337baa0bb39402e6e6d73"><div class="ttname"><a href="class_gzip.html#ad5db66366a8337baa0bb39402e6e6d73">Gzip::Gzip</a></div><div class="ttdeci">Gzip(const NameValuePairs &amp;parameters, BufferedTransformation *attachment=NULL)</div><div class="ttdoc">Construct a Gzip compressor. </div><div class="ttdef"><b>Definition:</b> <a href="gzip_8h_source.html#l00035">gzip.h:35</a></div></div>
<div class="ttc" id="class_gunzip_html_ae52ec4710236071011dcd1b5ef21045d"><div class="ttname"><a href="class_gunzip.html#ae52ec4710236071011dcd1b5ef21045d">Gunzip::GetComment</a></div><div class="ttdeci">const std::string &amp; GetComment(bool throwOnEncodingError=false) const</div><div class="ttdef"><b>Definition:</b> <a href="gzip_8cpp_source.html#l00177">gzip.cpp:177</a></div></div>
<div class="ttc" id="class_gunzip_html_aea40ede3804135ad1020dac2e7a3830a"><div class="ttname"><a href="class_gunzip.html#aea40ede3804135ad1020dac2e7a3830a">Gunzip::GetFilename</a></div><div class="ttdeci">const std::string &amp; GetFilename(bool throwOnEncodingError=false) const</div><div class="ttdef"><b>Definition:</b> <a href="gzip_8cpp_source.html#l00191">gzip.cpp:191</a></div></div>
<div class="ttc" id="class_inflator_html"><div class="ttname"><a href="class_inflator.html">Inflator</a></div><div class="ttdoc">DEFLATE decompressor (RFC 1951) </div><div class="ttdef"><b>Definition:</b> <a href="zinflate_8h_source.html#l00089">zinflate.h:89</a></div></div>
<div class="ttc" id="class_gzip_html_a1d1b762af2a7ae5053e2870ef57e313b"><div class="ttname"><a href="class_gzip.html#a1d1b762af2a7ae5053e2870ef57e313b">Gzip::Gzip</a></div><div class="ttdeci">Gzip(BufferedTransformation *attachment=NULL, unsigned int deflateLevel=DEFAULT_DEFLATE_LEVEL, unsigned int log2WindowSize=DEFAULT_LOG2_WINDOW_SIZE, bool detectUncompressible=true)</div><div class="ttdoc">Construct a Gzip compressor. </div><div class="ttdef"><b>Definition:</b> <a href="gzip_8h_source.html#l00028">gzip.h:28</a></div></div>
<div class="ttc" id="namespace_crypto_p_p_html"><div class="ttname"><a href="namespace_crypto_p_p.html">CryptoPP</a></div><div class="ttdoc">Crypto++ library namespace. </div></div>
<div class="ttc" id="class_gzip_html"><div class="ttname"><a href="class_gzip.html">Gzip</a></div><div class="ttdoc">GZIP Compression (RFC 1952) </div><div class="ttdef"><b>Definition:</b> <a href="gzip_8h_source.html#l00017">gzip.h:17</a></div></div>
<div class="ttc" id="class_c_r_c32_html"><div class="ttname"><a href="class_c_r_c32.html">CRC32</a></div><div class="ttdoc">CRC-32 Checksum Calculation. </div><div class="ttdef"><b>Definition:</b> <a href="crc_8h_source.html#l00025">crc.h:25</a></div></div>
<div class="ttc" id="class_name_value_pairs_html"><div class="ttname"><a href="class_name_value_pairs.html">NameValuePairs</a></div><div class="ttdoc">Interface for retrieving values given their names. </div><div class="ttdef"><b>Definition:</b> <a href="cryptlib_8h_source.html#l00290">cryptlib.h:290</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Sep 16 2018 07:57:53 for Crypto++ by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>