Files
php-doc-ru/reference/zlib/functions/inflate_init.xml
Sergey Panteleev bc205d49bc docs(ru): Updated to English revision
git-svn-id: https://svn.php.net/repository/phpdoc/ru/trunk@351637 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-25 09:27:20 +00:00

159 lines
5.3 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 02ba67b51f2bde571b6ce07026e935f4e81019af Maintainer: rjhdby Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<refentry xml:id="function.inflate-init" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>inflate_init</refname>
<refpurpose>Инициализация контекста инкрементальной распоковки</refpurpose>
</refnamediv>
<refsect1 role="description"><!-- {{{ -->
&reftitle.description;
<methodsynopsis>
<type class="union"><type>InflateContext</type><type>false</type></type><methodname>inflate_init</methodname>
<methodparam><type>int</type><parameter>encoding</parameter></methodparam>
<methodparam choice="opt"><type>array</type><parameter>options</parameter><initializer>[]</initializer></methodparam>
</methodsynopsis>
<para>
Инициализирует контекст инкрементальной распаковки с указанной кодировкой
<parameter>encoding</parameter>.
</para>
</refsect1><!-- }}} -->
<refsect1 role="parameters"><!-- {{{ -->
&reftitle.parameters;
<variablelist>
<varlistentry>
<term><parameter>encoding</parameter></term>
<listitem>
<para>
Одна из констант <constant>ZLIB_ENCODING_*</constant>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>options</parameter></term>
<listitem>
<para>
Ассоциативный массив, который может содержать следующие элементы:
<variablelist>
<varlistentry>
<term><varname>level</varname></term>
<listitem>
<para>
Уровень сжатия в диапазоне -1..9; по умолчанию -1.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><varname>memory</varname></term>
<listitem>
<para>
Уровень памяти сжатия в диапазоне 1..9; по умолчанию 8.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><varname>window</varname></term>
<listitem>
<para>
Размер окна zlib (логарифмический) в диапазоне 8..15; по умолчанию 15.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><varname>strategy</varname></term>
<listitem>
<para>
Одна из констант: <constant>ZLIB_FILTERED</constant>,
<constant>ZLIB_HUFFMAN_ONLY</constant>, <constant>ZLIB_RLE</constant>,
<constant>ZLIB_FIXED</constant> или
<constant>ZLIB_DEFAULT_STRATEGY</constant> (по умолчанию).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><varname>dictionary</varname></term>
<listitem>
<para>
Строка (<type>string</type>) или массив (<type>array</type>) строк текущего словаря
(по умолчанию предустановленного словаря нет).
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1><!-- }}} -->
<refsect1 role="returnvalues"><!-- {{{ -->
&reftitle.returnvalues;
<para>
Возвращает ресурс контекста распаковки (<literal>zlib.inflate</literal>) &return.falseforfailure;.
</para>
</refsect1><!-- }}} -->
<refsect1 role="errors"><!-- {{{ -->
&reftitle.errors;
<para>
Если в <parameter>options</parameter> была передана некорректная опция, или
контекст не может быть создан, то будет вызвана ошибка уровня <constant>E_WARNING</constant>.
</para>
</refsect1><!-- }}} -->
<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.0.0</entry>
<entry>
В случае успешного выполенения функция возвращает экземпляр <classname>InflateContext</classname>;
раньше возвращался ресурс (<type>resource</type>).
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 role="seealso"><!-- {{{ -->
&reftitle.seealso;
<simplelist>
<member><function>inflate_add</function></member>
<member><function>deflate_init</function></member>
</simplelist>
</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:"~/.phpdoc/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
-->