\hypertarget{ql__compression_8dox_8h_source}{}\doxysection{ql\+\_\+compression.\+dox.\+h}

\begin{DoxyCode}{0}
\DoxyCodeLine{1 }
\DoxyCodeLine{3 \textcolor{keyword}{namespace }\mbox{\hyperlink{namespace_qore}{Qore}} \{}
\DoxyCodeLine{7 }
\DoxyCodeLine{10 }
\DoxyCodeLine{21 \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} \mbox{\hyperlink{group__compresssion__functions_gabffa49d48df118495b29275a971fdfae}{bunzip2\_to\_binary}}(\mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} bin);}
\DoxyCodeLine{22 }
\DoxyCodeLine{24 }
\DoxyCodeLine{28 nothing \mbox{\hyperlink{group__compresssion__functions_gabffa49d48df118495b29275a971fdfae}{bunzip2\_to\_binary}}();}
\DoxyCodeLine{29 }
\DoxyCodeLine{31 }
\DoxyCodeLine{43 \textcolor{keywordtype}{string} \mbox{\hyperlink{group__compresssion__functions_gad364182e70b4a748b22b7636f18521dd}{bunzip2\_to\_string}}(\mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} bin, \_\_7\_ \textcolor{keywordtype}{string} encoding);}
\DoxyCodeLine{44 }
\DoxyCodeLine{46 }
\DoxyCodeLine{50 nothing \mbox{\hyperlink{group__compresssion__functions_gad364182e70b4a748b22b7636f18521dd}{bunzip2\_to\_string}}();}
\DoxyCodeLine{51 }
\DoxyCodeLine{53 }
\DoxyCodeLine{66 \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} \mbox{\hyperlink{group__compresssion__functions_ga2a5264cac8dfd0b95b4706f122c4a5cb}{bzip2}}(\mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} bin, softint level = \mbox{\hyperlink{group__compression__constants_ga5b66f8813c20f89b4555c72244ae91a6}{BZ2\_DEFAULT\_COMPRESSION}});}
\DoxyCodeLine{67 }
\DoxyCodeLine{69 }
\DoxyCodeLine{84 \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} \mbox{\hyperlink{group__compresssion__functions_ga2a5264cac8dfd0b95b4706f122c4a5cb}{bzip2}}(\textcolor{keywordtype}{string} str, softint level = \mbox{\hyperlink{group__compression__constants_ga5b66f8813c20f89b4555c72244ae91a6}{BZ2\_DEFAULT\_COMPRESSION}});}
\DoxyCodeLine{85 }
\DoxyCodeLine{87 }
\DoxyCodeLine{91 nothing \mbox{\hyperlink{group__compresssion__functions_ga2a5264cac8dfd0b95b4706f122c4a5cb}{bzip2}}();}
\DoxyCodeLine{92 }
\DoxyCodeLine{94 }
\DoxyCodeLine{109 \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} \mbox{\hyperlink{group__compresssion__functions_ga5a7dd18fde0559da33f14f484656cad7}{compress}}(\textcolor{keywordtype}{string} str, \textcolor{keywordtype}{int} level = \mbox{\hyperlink{group__compression__constants_gad0d06df5b25e4e03ca74b6458626d913}{Z\_DEFAULT\_COMPRESSION}});}
\DoxyCodeLine{110 }
\DoxyCodeLine{112 }
\DoxyCodeLine{127 \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} \mbox{\hyperlink{group__compresssion__functions_ga5a7dd18fde0559da33f14f484656cad7}{compress}}(\mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} bin, \textcolor{keywordtype}{int} level = \mbox{\hyperlink{group__compression__constants_gad0d06df5b25e4e03ca74b6458626d913}{Z\_DEFAULT\_COMPRESSION}});}
\DoxyCodeLine{128 }
\DoxyCodeLine{130 }
\DoxyCodeLine{134 nothing \mbox{\hyperlink{group__compresssion__functions_ga5a7dd18fde0559da33f14f484656cad7}{compress}}();}
\DoxyCodeLine{135 }
\DoxyCodeLine{137 }
\DoxyCodeLine{152 \mbox{\hyperlink{class_qore_1_1_transform}{Transform}} \mbox{\hyperlink{group__compresssion__functions_gabdbd68fb7146a0fe2c5c4bb13d481cb8}{get\_compressor}}(\textcolor{keywordtype}{string} alg, \textcolor{keywordtype}{int} level = \mbox{\hyperlink{group__compression__constants_gacba7ff553151bfe51acca63193990a0c}{COMPRESSION\_LEVEL\_DEFAULT}});}
\DoxyCodeLine{153 }
\DoxyCodeLine{155 }
\DoxyCodeLine{169 \mbox{\hyperlink{class_qore_1_1_transform}{Transform}} \mbox{\hyperlink{group__compresssion__functions_ga1590535ac15c91dee832b9ffae8fa69f}{get\_decompressor}}(\textcolor{keywordtype}{string} alg);}
\DoxyCodeLine{170 }
\DoxyCodeLine{172 }
\DoxyCodeLine{183 \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} \mbox{\hyperlink{group__compresssion__functions_ga4a4dc4e883ee617bc05418daf884bca1}{gunzip\_to\_binary}}(\mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} bin);}
\DoxyCodeLine{184 }
\DoxyCodeLine{186 }
\DoxyCodeLine{190 nothing \mbox{\hyperlink{group__compresssion__functions_ga4a4dc4e883ee617bc05418daf884bca1}{gunzip\_to\_binary}}();}
\DoxyCodeLine{191 }
\DoxyCodeLine{193 }
\DoxyCodeLine{205 \textcolor{keywordtype}{string} \mbox{\hyperlink{group__compresssion__functions_ga324723f7a61a79d2ec18b4c871c062bd}{gunzip\_to\_string}}(\mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} bin, \_\_7\_ \textcolor{keywordtype}{string} encoding);}
\DoxyCodeLine{206 }
\DoxyCodeLine{208 }
\DoxyCodeLine{212 nothing \mbox{\hyperlink{group__compresssion__functions_ga324723f7a61a79d2ec18b4c871c062bd}{gunzip\_to\_string}}();}
\DoxyCodeLine{213 }
\DoxyCodeLine{215 }
\DoxyCodeLine{230 \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} \mbox{\hyperlink{group__compresssion__functions_gaed906422dda7f7506aaaa4d847f8eaed}{gzip}}(\textcolor{keywordtype}{string} str, \textcolor{keywordtype}{int} level = \mbox{\hyperlink{group__compression__constants_gad0d06df5b25e4e03ca74b6458626d913}{Z\_DEFAULT\_COMPRESSION}});}
\DoxyCodeLine{231 }
\DoxyCodeLine{233 }
\DoxyCodeLine{246 \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} \mbox{\hyperlink{group__compresssion__functions_gaed906422dda7f7506aaaa4d847f8eaed}{gzip}}(\mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} bin, \textcolor{keywordtype}{int} level = \mbox{\hyperlink{group__compression__constants_gad0d06df5b25e4e03ca74b6458626d913}{Z\_DEFAULT\_COMPRESSION}});}
\DoxyCodeLine{247 }
\DoxyCodeLine{249 }
\DoxyCodeLine{253 nothing \mbox{\hyperlink{group__compresssion__functions_gaed906422dda7f7506aaaa4d847f8eaed}{gzip}}();}
\DoxyCodeLine{254 }
\DoxyCodeLine{256 }
\DoxyCodeLine{267 \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} \mbox{\hyperlink{group__compresssion__functions_gafecce0baf872032249897916a592d18c}{uncompress\_to\_binary}}(\mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} bin);}
\DoxyCodeLine{268 }
\DoxyCodeLine{270 }
\DoxyCodeLine{274 nothing \mbox{\hyperlink{group__compresssion__functions_gafecce0baf872032249897916a592d18c}{uncompress\_to\_binary}}();}
\DoxyCodeLine{275 }
\DoxyCodeLine{277 }
\DoxyCodeLine{289 \textcolor{keywordtype}{string} \mbox{\hyperlink{group__compresssion__functions_ga9dedfc30ebd57865cd2ee272612c2efd}{uncompress\_to\_string}}(\mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} bin, \_\_7\_ \textcolor{keywordtype}{string} encoding);}
\DoxyCodeLine{290 }
\DoxyCodeLine{292 }
\DoxyCodeLine{296 nothing \mbox{\hyperlink{group__compresssion__functions_ga9dedfc30ebd57865cd2ee272612c2efd}{uncompress\_to\_string}}();}
\DoxyCodeLine{297 }
\DoxyCodeLine{299 \}}
\DoxyCodeLine{300 }
\DoxyCodeLine{302 \textcolor{keyword}{namespace }\mbox{\hyperlink{namespace_qore}{Qore}} \{}
\DoxyCodeLine{305 }
\DoxyCodeLine{308     \textcolor{keyword}{const} \mbox{\hyperlink{group__compression__constants_ga5b66f8813c20f89b4555c72244ae91a6}{BZ2\_DEFAULT\_COMPRESSION}} = \mbox{\hyperlink{group__compression__constants_ga5b66f8813c20f89b4555c72244ae91a6}{BZ2\_DEFAULT\_COMPRESSION}};}
\DoxyCodeLine{310     \textcolor{keyword}{const} \mbox{\hyperlink{group__compression__constants_gacba7ff553151bfe51acca63193990a0c}{COMPRESSION\_LEVEL\_DEFAULT}} = \mbox{\hyperlink{group__compression__constants_gacba7ff553151bfe51acca63193990a0c}{COMPRESSION\_LEVEL\_DEFAULT}};}
\DoxyCodeLine{312     \textcolor{keyword}{const} \mbox{\hyperlink{group__compression__constants_gad0d06df5b25e4e03ca74b6458626d913}{Z\_DEFAULT\_COMPRESSION}} = \mbox{\hyperlink{group__compression__constants_gad0d06df5b25e4e03ca74b6458626d913}{Z\_DEFAULT\_COMPRESSION}};}
\DoxyCodeLine{314 \}}
\DoxyCodeLine{315 }
\DoxyCodeLine{317 \textcolor{keyword}{namespace }\mbox{\hyperlink{namespace_qore}{Qore}} \{}
\DoxyCodeLine{332 }
\DoxyCodeLine{335     \textcolor{keyword}{const} \mbox{\hyperlink{group__compression__transformations_ga80882b4cc21a464faa9fcb8ff324503e}{COMPRESSION\_ALG\_BZIP2}} = str(CompressionTransforms::ALG\_BZIP2);}
\DoxyCodeLine{337     \textcolor{keyword}{const} \mbox{\hyperlink{group__compression__transformations_ga0792440b22963ae236ed21a9396f840e}{COMPRESSION\_ALG\_GZIP}} = str(CompressionTransforms::ALG\_GZIP);}
\DoxyCodeLine{339     \textcolor{keyword}{const} \mbox{\hyperlink{group__compression__transformations_ga5fbf52ae9b5e5f6b03034772f60132b3}{COMPRESSION\_ALG\_ZLIB}} = str(CompressionTransforms::ALG\_ZLIB);}
\DoxyCodeLine{341 \}}

\end{DoxyCode}
