cvs: phpdoc-sk /reference/bzip2/functions bzclose.xml bzcompress.xml bzdecompress.xml bzerrno.xml bzerror.xml bzerrstr.xml bzflush.xml bzopen.xml bzread.xml bzwrite.xml
[email protected] ("Joseph Drake")
| Newsgroups | php.doc.sk |
|---|---|
| Message-ID | <cvsjoseph1045872805@cvsserver> |
joseph Fri Feb 21 19:13:25 2003 EDT
Added files:
/phpdoc-sk/reference/bzip2/functions bzclose.xml bzcompress.xml
bzdecompress.xml bzerrno.xml
bzerror.xml bzerrstr.xml
bzflush.xml bzopen.xml
bzread.xml bzwrite.xml
Log:
bz functions
joseph-20030221191325.txt
(text/plain, 18.3 KB)
Index: phpdoc-sk/reference/bzip2/functions/bzclose.xml
+++ phpdoc-sk/reference/bzip2/functions/bzclose.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 Maintainer: joseph Status: ready -->
<!-- splitted from ./en/functions/bzip2.xml, last change in rev 1.1 -->
<refentry id="function.bzclose">
<refnamediv>
<refname>bzclose</refname>
<refpurpose>Zatvori» pointer bzip2 súboru</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<methodsynopsis>
<type>int</type><methodname>bzclose</methodname>
<methodparam><type>resource</type><parameter>bz</parameter></methodparam>
</methodsynopsis>
<para>
Zatvára bzip2 súbor odvolávaný ukazovateµom <parameter>bz</parameter>.
</para>
<para>
&return.success;
</para>
<para>
Ukazovateµ súboru musí by» platný a musí ukazova» na súbor
úspe¹ne otovrený funkciou <function>bzopen</function>.
</para>
<para>
Tie¾ pozri <function>bzopen</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:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
Index: phpdoc-sk/reference/bzip2/functions/bzcompress.xml
+++ phpdoc-sk/reference/bzip2/functions/bzcompress.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 Maintainer: joseph Status: ready -->
<!-- splitted from ./en/functions/bzip2.xml, last change in rev 1.1 -->
<refentry id="function.bzcompress">
<refnamediv>
<refname>bzcompress</refname>
<refpurpose>Skomprimova» re»azec na zakódované dáta 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 re»azec
<parameter>source</parameter> a vracia ho ako zakódované dáta
bzip2.
</para>
<para>
Voliteµný parameter <parameter>blocksize</parameter> ¹pecifikuje
veµkos» bloku pou¾itú poèas kompresie a malo by to by» èíslo od
1 do 9, prièom 9 predstavuje najlep¹iu kompresiu, ale pou¾íva
k tomu viac zdrojov. <parameter>blocksize</parameter> má
predvolenú hodnotu 4.
</para>
<para>
Voliteµný parameter <parameter>workfactor</parameter> kontroluje,
ako sa fáza kompresie správa v najhor¹om prípade, keï sa dáta
mnohokrát opakujú. Hodnota mô¾e bby» medzi 0 a 250, prièom 0
je ¹peciálny prípad a 30 je východzia hodnota. Bez ohµadu
na <parameter>workfactor</parameter> je vygenerovaný výstup
rovnaký.
</para>
<para>
<example>
<title><function>bzcompress</function> príklad</title>
<programlisting role="php">
<![CDATA[
<?php
$str = "vzorove data";
$bzstr = bzcompress($str, 9);
print( $bzstr );
?>
]]>
</programlisting>
</example>
</para>
<para>
Tie¾ pozri <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:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
Index: phpdoc-sk/reference/bzip2/functions/bzdecompress.xml
+++ phpdoc-sk/reference/bzip2/functions/bzdecompress.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 Maintainer: joseph Status: ready -->
<!-- splitted from ./en/functions/bzip2.xml, last change in rev 1.1 -->
<refentry id="function.bzdecompress">
<refnamediv>
<refname>bzdecompress</refname>
<refpurpose>Dekomprimuje zakódované dáta 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 re»azec
<parameter>source</parameter> obsahujúci zakódované dáta
a vráti ho. Ak je voliteµný parameter
<parameter>small</parameter> &true;, pou¾ije sa alternatívny
dekompresný algoritmus, ktorý vyu¾íva menej pamäte(maximálna
vwòeµkos» pamäte sa pohybuje okolo 230K), ale pracuje poloviènou
rýchlos»ou. Pre viac informácii o tejto vlastnosti si pozrite
<ulink url="&url.bzip2;">bzip2 dokumentáciu</ulink>.
</para>
<para>
<example>
<title><function>bzdecompress</function></title>
<programlisting role="php">
<![CDATA[
<?php
$start_str = "Toto nie je uprimna tvar?";
$bzstr = bzcompress($start_str);
print( "Komprimovany retazec: " );
print( $bzstr );
print( "\n<br>\n" );
$str = bzdecompress($bzstr);
print( "Dekomprimovany retazec: " );
print( $str );
print( "\n<br>\n" );
?>
]]>
</programlisting>
</example>
</para>
<para>
Tie¾ pozri <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:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
Index: phpdoc-sk/reference/bzip2/functions/bzerrno.xml
+++ phpdoc-sk/reference/bzip2/functions/bzerrno.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 Maintainer: joseph Status: ready -->
<!-- splitted from ./en/functions/bzip2.xml, last change in rev 1.1 -->
<refentry id="function.bzerrno">
<refnamediv>
<refname>bzerrno</refname>
<refpurpose>Vracia èíslo bzip2 chyby</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<methodsynopsis>
<type>int</type><methodname>bzerrno</methodname>
<methodparam><type>resource</type><parameter>bz</parameter></methodparam>
</methodsynopsis>
<para>
Vracia èíslo chyby v¹etkých bzip2 chýb vrátených ukazovateµom
súboru <parameter>bz</parameter>.
</para>
<para>
Tie¾ pozri <function>bzerror</function> a <function>bzerrstr</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:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
Index: phpdoc-sk/reference/bzip2/functions/bzerror.xml
+++ phpdoc-sk/reference/bzip2/functions/bzerror.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 Maintainer: joseph Status: ready -->
<!-- splitted from ./en/functions/bzip2.xml, last change in rev 1.1 -->
<refentry id="function.bzerror">
<refnamediv>
<refname>bzerror</refname>
<refpurpose>Vracia èíslo bzip2 chyby a chybový re»azec v poli</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<methodsynopsis>
<type>array</type><methodname>bzerror</methodname>
<methodparam><type>resource</type><parameter>bz</parameter></methodparam>
</methodsynopsis>
<para>
Vracia èíslo chyby a chybový re»azec, v asociatívnom poli, v¹etkých
bzip2 chýb vrátených ukazovateµom súboru <parameter>bz</parameter>.
</para>
<para>
<example>
<title><function>bzerror</function> príklad</title>
<programlisting role="php">
<![CDATA[
<?php
$error = bzerror($bz);
echo $error["errno"];
echo $error["errstr"];
?>
]]>
</programlisting>
</example>
</para>
<para>
Tie¾ pozri <function>bzerrno</function> a <function>bzerrstr</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:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
Index: phpdoc-sk/reference/bzip2/functions/bzerrstr.xml
+++ phpdoc-sk/reference/bzip2/functions/bzerrstr.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 Maintainer: joseph Status: ready -->
<!-- splitted from ./en/functions/bzip2.xml, last change in rev 1.1 -->
<refentry id="function.bzerrstr">
<refnamediv>
<refname>bzerrstr</refname>
<refpurpose>Vracia chybový re»azec bzip2</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<methodsynopsis>
<type>string</type><methodname>bzerrstr</methodname>
<methodparam><type>resource</type><parameter>bz</parameter></methodparam>
</methodsynopsis>
<para>
Vracia chybový re»azec v¹etkých bzip2 chýb vrátených ukazovateµom
súboru <parameter>bz</parameter>.
</para>
<para>
Tie¾ pozri <function>bzerrno</function> a <function>bzerror</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:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
Index: phpdoc-sk/reference/bzip2/functions/bzflush.xml
+++ phpdoc-sk/reference/bzip2/functions/bzflush.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 Mantainer: joseph Status: ready -->
<!-- splitted from ./en/functions/bzip2.xml, last change in rev 1.1 -->
<refentry id="function.bzflush">
<refnamediv>
<refname>bzflush</refname>
<refpurpose>Nanúti» zápis v¹etkých dát zásobníka</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<methodsynopsis>
<type>int</type><methodname>bzflush</methodname>
<methodparam><type>resource</type><parameter>bz</parameter></methodparam>
</methodsynopsis>
<para>
Nanúti zápis v¹etkých bzip2 dát zásobníka pre ukazovateµ súboru
<parameter>bz</parameter>.
</para>
<para>
&return.success;
</para>
<para>
Tie¾ pozri <function>bzread</function> a <function>bzwrite</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:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
Index: phpdoc-sk/reference/bzip2/functions/bzopen.xml
+++ phpdoc-sk/reference/bzip2/functions/bzopen.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 Maintainer: joseph Status: ready -->
<!-- splitted from ./en/functions/bzip2.xml, last change in rev 1.1 -->
<refentry id="function.bzopen">
<refnamediv>
<refname>bzopen</refname>
<refpurpose>Otvori» komprimovaný súbor bzip2</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<methodsynopsis>
<type>resource</type><methodname>bzopen</methodname>
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
<methodparam><type>string</type><parameter>mode</parameter></methodparam>
</methodsynopsis>
<para>
Otvára súbor bzip2 (.bz2) na èítanie alebo zápis.
<parameter>filename</parameter> je názov súboru, ktorý sa má
otvori». <parameter>mode</parameter> je podobný funkcii
<function>fopen</function> (`r' na èítanie, `w' na zápis, atï.).
</para>
<para>
Ak otváranie zlyhá, funkcia vracia &false;, inak vracia
ukazovateµ na novo otvorený súbor.
</para>
<para>
<example>
<title><function>bzopen</function> príklad</title>
<programlisting role="php">
<![CDATA[
<?php
$bz = bzopen("/tmp/foo.bz2", "r");
$decompressed_file = bzread($bz, filesize("/tmp/foo.bz2"));
bzclose($bz);
print( "Obsahom /tmp/foo.bz2 je: " );
print( "\n<br>\n" );
print( $decompressed_file );
?>
]]>
</programlisting>
</example>
</para>
<para>
Tie¾ pozri <function>bzclose</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:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
Index: phpdoc-sk/reference/bzip2/functions/bzread.xml
+++ phpdoc-sk/reference/bzip2/functions/bzread.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 Maintainer: joseph Status: ready -->
<!-- splitted from ./en/functions/bzip2.xml, last change in rev 1.1 -->
<refentry id="function.bzread">
<refnamediv>
<refname>bzread</refname>
<refpurpose>Binárne naèítanie bizip2 súboru</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<methodsynopsis>
<type>string</type><methodname>bzread</methodname>
<methodparam><type>resource</type><parameter>bz</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>length</parameter></methodparam>
</methodsynopsis>
<para>
<function>bzread</function> naèíta
<parameter>length</parameter> bytov z ukazovateµa súboru bzip2
odvolávaný ako <parameter>bz</parameter>. Èítanie sa preru¹í
ak sa naèíta <parameter>length</parameter> (nekomprimvaných)
bytov alebo sa dosiahne EOF. Ak nie je ¹pecifikovaný voliteµný
parameter <parameter>length</parameter>, tak
<function>bzread</function> naèíta 1024 (nekomprimovaných)
bytov naraz.
</para>
<para>
<example>
<title><function>bzread</function> príklad</title>
<programlisting role="php">
<![CDATA[
<?php
$bz = bzopen("/tmp/foo.bz2", "r");
$str = bzread($bz, 2048);
print( $str );
?>
]]>
</programlisting>
</example>
</para>
<para>
Tie¾ pozri <function>bzwrite</function> a <function>bzopen</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:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
Index: phpdoc-sk/reference/bzip2/functions/bzwrite.xml
+++ phpdoc-sk/reference/bzip2/functions/bzwrite.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 Maintainer: joseph Status: ready -->
<!-- splitted from ./en/functions/bzip2.xml, last change in rev 1.1 -->
<refentry id="function.bzwrite">
<refnamediv>
<refname>bzwrite</refname>
<refpurpose>Binárny zápis do bzip2 súboru</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<methodsynopsis>
<type>int</type><methodname>bzwrite</methodname>
<methodparam><type>resource</type><parameter>bz</parameter></methodparam>
<methodparam><type>string</type><parameter>data</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>length</parameter></methodparam>
</methodsynopsis>
<para>
<function>bzwrite</function> zapisuje obsah re»azca
<parameter>data</parameter> do bzip2 súborového prúdu ukazovaný
pomocou <parameter>bz</parameter>. Ak je daný voliteµný argument
<parameter>length</parameter>, zapisovanie sa preru¹í
po tom, èo sa zapísala då¾ka bytov (nekomprimovaných) alebo sa
dosiahne koniec re»azca.
</para>
<para>
<example>
<title><function>bzwrite</function> príklad<title>
<programlisting role="php">
<![CDATA[
<?php
$str = "nekomprimovane data";
$bz = bzopen("/tmp/foo.bz2", "w");
bzwrite($bz, $str, strlen($str));
bzclose($bz);
?>
]]>
</programlisting>
</example>
</para>
<para>
Tie¾ pozri <function>bzread</function> a <function>bzopen</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:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->