cvs: phpdoc-cs /reference/bzip2/functions bzcompress.xml bzdecompress.xml

From: Date: Thu, 11 Jul 2002 21:04:26 +0000
Subject: cvs: phpdoc-cs /reference/bzip2/functions bzcompress.xml bzdecompress.xml
Groups: php.doc.cs 
Request: Send a blank email to doc-cs+get-3@lists.php.net to get a copy of this message
luk Thu Jul 11 17:04:26 2002 EDT Added files: /phpdoc-cs/reference/bzip2/functions bzcompress.xml bzdecompress.xml Log: Index: phpdoc-cs/reference/bzip2/functions/bzcompress.xml +++ phpdoc-cs/reference/bzip2/functions/bzcompress.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: luk Status: ready --> <refentry id="function.bzcompress"> <refnamediv> <refname>bzcompress</refname> <refpurpose>Zkomprimuje øetìzec algoritmem bzip2</refpurpose> </refnamediv> <refsect1> <title>Popis</title> <methodsynopsis> <type>string</type><methodname>bzcompress</methodname> <methodparam><type>string</type><parameter>source</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>blocksize</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>workfactor</parameter></methodparam> </methodsynopsis> <para> <function>bzcompress</function> komprimuje øetìzec <parameter>source</parameter> a vrací ho ve formì dat získaných pomocí algoritmu bzip2. </para> <para> Nepovinný parametr <parameter>blocksize</parameter> specifikuje velikost bloku pou¾itou pøi komprimaci; mìlo by to být èíslo od 1 do 9, kde 9 znamená nejúèinnìj¹í kompresi, ale s vìt¹ími nároky na potøebné prostøedky. Implicitní hodnota <parameter>blocksize</parameter> je 4. </para> <para> Nepovinný parametr <parameter>workfactor</parameter> urèuje, jak se kompresní mechanismus chová v pøípadì nejhor¹ích, velmi se opakujících, vstupnách dat. Mù¾e nabývat hodnot mezi 0 a 250; 0 pøedstavuje speciální pøípad, 30 je implicitní hodnota. Generovaný výstup je bez ohledu na <parameter>workfactor</parameter> v¾dy stejný. </para> <para> <example> <title><function>bzcompress</function> Pøíklad</title> <programlisting role="php"> <![CDATA[ <?php $str = "zku¹ební data"; $bzstr = bzcompress($str, 9); print( $bzstr ); ?> ]]> </programlisting> </example> </para> <para> Viz také <function>bzdecompress</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: --> Index: phpdoc-cs/reference/bzip2/functions/bzdecompress.xml +++ phpdoc-cs/reference/bzip2/functions/bzdecompress.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: luk Status: ready --> <refentry id="function.bzdecompress"> <refnamediv> <refname>bzdecompress</refname> <refpurpose>Dekomprimuje data komprimovaná pomocí bzip2</refpurpose> </refnamediv> <refsect1> <title>Popis</title> <methodsynopsis> <type>string</type><methodname>bzdecompress</methodname> <methodparam><type>string</type><parameter>source</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>small</parameter></methodparam> </methodsynopsis> <para> <function>bzdecompress</function> dekomprimuje øetìzec <parameter>source</parameter> obsahující data komprimovaná pomocí algoritmu bzip2, a vrací je. Pokud má nepovinný parametr <parameter>small</parameter> hodnotu &true;, pou¾ije se alternativní dekompresní algoritmus s ni¾¹ími nároky na pamì» (maximální pamìtové po¾adavky klesnou na cca 2300 KB), ale zhruba polovièní rychlostí. Více informací najdete v <ulink url="&url.bzip2;">dokumentaci k bzip2</ulink>. </para> <para> <example> <title><function>bzdecompress</function></title> <programlisting role="php"> <![CDATA[ <?php $start_str = "Tohle není upøímný oblièej?"; $bzstr = bzcompress($start_str); print( "Komprimovaný øetìzec: " ); print( $bzstr ); print( "\n<br>\n" ); $str = bzdecompress($bzstr); print( "Dekomprimovaný øetezec: " ); print( $str ); print( "\n<br>\n" ); ?> ]]> </programlisting> </example> </para> <para> Viz také <function>bzcompress</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: -->

« previous php.doc.cs (#3) next »