\doxysection{ql\+\_\+compression.\+dox.\+h}
\hypertarget{ql__compression_8dox_8h_source}{}\label{ql__compression_8dox_8h_source}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ }
\DoxyCodeLine{00003\ \textcolor{keyword}{namespace\ }\mbox{\hyperlink{namespace_qore}{Qore}}\ \{}
\DoxyCodeLine{00008\ }
\DoxyCodeLine{00010\ }
\DoxyCodeLine{00021\ \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}}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bin}});}
\DoxyCodeLine{00022\ }
\DoxyCodeLine{00024\ }
\DoxyCodeLine{00028\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{nothing}}\ \mbox{\hyperlink{group__compresssion__functions_gabffa49d48df118495b29275a971fdfae}{bunzip2\_to\_binary}}();}
\DoxyCodeLine{00029\ }
\DoxyCodeLine{00031\ }
\DoxyCodeLine{00043\ \textcolor{keywordtype}{string}\ \mbox{\hyperlink{group__compresssion__functions_gad364182e70b4a748b22b7636f18521dd}{bunzip2\_to\_string}}(\mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bin}},\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{\_\_7\_}}\ \textcolor{keywordtype}{string}\ encoding);}
\DoxyCodeLine{00044\ }
\DoxyCodeLine{00046\ }
\DoxyCodeLine{00050\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{nothing}}\ \mbox{\hyperlink{group__compresssion__functions_gad364182e70b4a748b22b7636f18521dd}{bunzip2\_to\_string}}();}
\DoxyCodeLine{00051\ }
\DoxyCodeLine{00053\ }
\DoxyCodeLine{00066\ \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}}\ \mbox{\hyperlink{group__compresssion__functions_ga2a5264cac8dfd0b95b4706f122c4a5cb}{bzip2}}(\mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bin}},\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{softint}}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{level}}\ =\ \mbox{\hyperlink{group__compression__constants_ga5b66f8813c20f89b4555c72244ae91a6}{BZ2\_DEFAULT\_COMPRESSION}});}
\DoxyCodeLine{00067\ }
\DoxyCodeLine{00069\ }
\DoxyCodeLine{00084\ \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}}\ \mbox{\hyperlink{group__compresssion__functions_ga2a5264cac8dfd0b95b4706f122c4a5cb}{bzip2}}(\textcolor{keywordtype}{string}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{str}},\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{softint}}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{level}}\ =\ \mbox{\hyperlink{group__compression__constants_ga5b66f8813c20f89b4555c72244ae91a6}{BZ2\_DEFAULT\_COMPRESSION}});}
\DoxyCodeLine{00085\ }
\DoxyCodeLine{00087\ }
\DoxyCodeLine{00091\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{nothing}}\ \mbox{\hyperlink{group__compresssion__functions_ga2a5264cac8dfd0b95b4706f122c4a5cb}{bzip2}}();}
\DoxyCodeLine{00092\ }
\DoxyCodeLine{00094\ }
\DoxyCodeLine{00109\ \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}}\ \mbox{\hyperlink{group__compresssion__functions_ga5a7dd18fde0559da33f14f484656cad7}{compress}}(\textcolor{keywordtype}{string}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{str}},\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{level}}\ =\ \mbox{\hyperlink{group__compression__constants_gad0d06df5b25e4e03ca74b6458626d913}{Z\_DEFAULT\_COMPRESSION}});}
\DoxyCodeLine{00110\ }
\DoxyCodeLine{00112\ }
\DoxyCodeLine{00127\ \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}}\ \mbox{\hyperlink{group__compresssion__functions_ga5a7dd18fde0559da33f14f484656cad7}{compress}}(\mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bin}},\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{level}}\ =\ \mbox{\hyperlink{group__compression__constants_gad0d06df5b25e4e03ca74b6458626d913}{Z\_DEFAULT\_COMPRESSION}});}
\DoxyCodeLine{00128\ }
\DoxyCodeLine{00130\ }
\DoxyCodeLine{00134\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{nothing}}\ \mbox{\hyperlink{group__compresssion__functions_ga5a7dd18fde0559da33f14f484656cad7}{compress}}();}
\DoxyCodeLine{00135\ }
\DoxyCodeLine{00137\ }
\DoxyCodeLine{00152\ \mbox{\hyperlink{class_qore_1_1_transform}{Transform}}\ \mbox{\hyperlink{group__compresssion__functions_gabdbd68fb7146a0fe2c5c4bb13d481cb8}{get\_compressor}}(\textcolor{keywordtype}{string}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{alg}},\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{level}}\ =\ \mbox{\hyperlink{group__compression__constants_gacba7ff553151bfe51acca63193990a0c}{COMPRESSION\_LEVEL\_DEFAULT}});}
\DoxyCodeLine{00153\ }
\DoxyCodeLine{00155\ }
\DoxyCodeLine{00169\ \mbox{\hyperlink{class_qore_1_1_transform}{Transform}}\ \mbox{\hyperlink{group__compresssion__functions_ga1590535ac15c91dee832b9ffae8fa69f}{get\_decompressor}}(\textcolor{keywordtype}{string}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{alg}});}
\DoxyCodeLine{00170\ }
\DoxyCodeLine{00172\ }
\DoxyCodeLine{00183\ \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}}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bin}});}
\DoxyCodeLine{00184\ }
\DoxyCodeLine{00186\ }
\DoxyCodeLine{00190\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{nothing}}\ \mbox{\hyperlink{group__compresssion__functions_ga4a4dc4e883ee617bc05418daf884bca1}{gunzip\_to\_binary}}();}
\DoxyCodeLine{00191\ }
\DoxyCodeLine{00193\ }
\DoxyCodeLine{00205\ \textcolor{keywordtype}{string}\ \mbox{\hyperlink{group__compresssion__functions_ga324723f7a61a79d2ec18b4c871c062bd}{gunzip\_to\_string}}(\mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bin}},\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{\_\_7\_}}\ \textcolor{keywordtype}{string}\ encoding);}
\DoxyCodeLine{00206\ }
\DoxyCodeLine{00208\ }
\DoxyCodeLine{00212\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{nothing}}\ \mbox{\hyperlink{group__compresssion__functions_ga324723f7a61a79d2ec18b4c871c062bd}{gunzip\_to\_string}}();}
\DoxyCodeLine{00213\ }
\DoxyCodeLine{00215\ }
\DoxyCodeLine{00230\ \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}}\ \mbox{\hyperlink{group__compresssion__functions_gaed906422dda7f7506aaaa4d847f8eaed}{gzip}}(\textcolor{keywordtype}{string}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{str}},\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{level}}\ =\ \mbox{\hyperlink{group__compression__constants_gad0d06df5b25e4e03ca74b6458626d913}{Z\_DEFAULT\_COMPRESSION}});}
\DoxyCodeLine{00231\ }
\DoxyCodeLine{00233\ }
\DoxyCodeLine{00246\ \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}}\ \mbox{\hyperlink{group__compresssion__functions_gaed906422dda7f7506aaaa4d847f8eaed}{gzip}}(\mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bin}},\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{level}}\ =\ \mbox{\hyperlink{group__compression__constants_gad0d06df5b25e4e03ca74b6458626d913}{Z\_DEFAULT\_COMPRESSION}});}
\DoxyCodeLine{00247\ }
\DoxyCodeLine{00249\ }
\DoxyCodeLine{00253\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{nothing}}\ \mbox{\hyperlink{group__compresssion__functions_gaed906422dda7f7506aaaa4d847f8eaed}{gzip}}();}
\DoxyCodeLine{00254\ }
\DoxyCodeLine{00256\ }
\DoxyCodeLine{00267\ \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}}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bin}});}
\DoxyCodeLine{00268\ }
\DoxyCodeLine{00270\ }
\DoxyCodeLine{00274\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{nothing}}\ \mbox{\hyperlink{group__compresssion__functions_gafecce0baf872032249897916a592d18c}{uncompress\_to\_binary}}();}
\DoxyCodeLine{00275\ }
\DoxyCodeLine{00277\ }
\DoxyCodeLine{00289\ \textcolor{keywordtype}{string}\ \mbox{\hyperlink{group__compresssion__functions_ga9dedfc30ebd57865cd2ee272612c2efd}{uncompress\_to\_string}}(\mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bin}},\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{\_\_7\_}}\ \textcolor{keywordtype}{string}\ encoding);}
\DoxyCodeLine{00290\ }
\DoxyCodeLine{00292\ }
\DoxyCodeLine{00296\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{nothing}}\ \mbox{\hyperlink{group__compresssion__functions_ga9dedfc30ebd57865cd2ee272612c2efd}{uncompress\_to\_string}}();}
\DoxyCodeLine{00297\ }
\DoxyCodeLine{00299\ \}}
\DoxyCodeLine{00300\ }
\DoxyCodeLine{00302\ \textcolor{keyword}{namespace\ }\mbox{\hyperlink{namespace_qore}{Qore}}\ \{}
\DoxyCodeLine{00306\ }
\DoxyCodeLine{00308\ \ \ \ \ \textcolor{keyword}{const}\ \mbox{\hyperlink{group__compression__constants_ga5b66f8813c20f89b4555c72244ae91a6}{BZ2\_DEFAULT\_COMPRESSION}}\ =\ \mbox{\hyperlink{group__compression__constants_ga5b66f8813c20f89b4555c72244ae91a6}{BZ2\_DEFAULT\_COMPRESSION}};}
\DoxyCodeLine{00310\ \ \ \ \ \textcolor{keyword}{const}\ \mbox{\hyperlink{group__compression__constants_gacba7ff553151bfe51acca63193990a0c}{COMPRESSION\_LEVEL\_DEFAULT}}\ =\ \mbox{\hyperlink{group__compression__constants_gacba7ff553151bfe51acca63193990a0c}{COMPRESSION\_LEVEL\_DEFAULT}};}
\DoxyCodeLine{00312\ \ \ \ \ \textcolor{keyword}{const}\ \mbox{\hyperlink{group__compression__constants_gad0d06df5b25e4e03ca74b6458626d913}{Z\_DEFAULT\_COMPRESSION}}\ =\ \mbox{\hyperlink{group__compression__constants_gad0d06df5b25e4e03ca74b6458626d913}{Z\_DEFAULT\_COMPRESSION}};}
\DoxyCodeLine{00314\ \}}
\DoxyCodeLine{00315\ }
\DoxyCodeLine{00317\ \textcolor{keyword}{namespace\ }\mbox{\hyperlink{namespace_qore}{Qore}}\ \{}
\DoxyCodeLine{00333\ }
\DoxyCodeLine{00335\ \ \ \ \ \textcolor{keyword}{const}\ \mbox{\hyperlink{group__compression__transformations_ga80882b4cc21a464faa9fcb8ff324503e}{COMPRESSION\_ALG\_BZIP2}}\ =\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{str}}(CompressionTransforms::ALG\_BZIP2);}
\DoxyCodeLine{00337\ \ \ \ \ \textcolor{keyword}{const}\ \mbox{\hyperlink{group__compression__transformations_ga0792440b22963ae236ed21a9396f840e}{COMPRESSION\_ALG\_GZIP}}\ =\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{str}}(CompressionTransforms::ALG\_GZIP);}
\DoxyCodeLine{00339\ \ \ \ \ \textcolor{keyword}{const}\ \mbox{\hyperlink{group__compression__transformations_ga5fbf52ae9b5e5f6b03034772f60132b3}{COMPRESSION\_ALG\_ZLIB}}\ =\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{str}}(CompressionTransforms::ALG\_ZLIB);}
\DoxyCodeLine{00341\ \}}

\end{DoxyCode}
