Files
php-doc-ru/reference/rar/rarentry/getunpackedsize.xml
Sergey Panteleev cdf1f1b63d docs(ru): Updated to English revision
git-svn-id: https://svn.php.net/repository/phpdoc/ru/trunk@351778 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-30 06:15:53 +00:00

113 lines
3.4 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: e41806c30bf6975e452c0d4ce35ab0984c2fa68c Maintainer: irker Status: ready -->
<!-- Reviewed: yes Maintainer: sergey -->
<refentry xml:id="rarentry.getunpackedsize" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>RarEntry::getUnpackedSize</refname>
<refpurpose>Возвращает размер элемента в распакованном состоянии</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <type>int</type><methodname>RarEntry::getUnpackedSize</methodname>
<void/>
</methodsynopsis>
<para>
Возвращает размер элемента архива в распакованном состоянии.
</para>
<note>
<para>
Учтите, что на платформах с 32-х битными целыми long
(включая Windows x64), максимальный возвращаемый размер
ограничен 2 ГБ. Проверьте константу <constant>PHP_INT_MAX</constant>.
</para>
</note>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
&no.function.parameters;
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Возвращает размер распакованного элемента, или &false; в случае возникновения ошибки.
</para>
</refsect1>
<refsect1 role="changelog">
&reftitle.changelog;
<para>
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>PECL rar 2.0.0</entry>
<entry>
Данный метод теперь возвращает правильные значения для
сжатых данных больше 2 ГБ на платформах с 64-х битными
целыми (<type>int</type>) и никогда не возвращает
отрицательные значения на всех платформах.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.returnvalues;
<para>
<example>
<title>Пример использования <methodname>RarEntry::getUnpackedSize</methodname></title>
<programlisting role="php">
<![CDATA[
<?php
$rar_file = rar_open('example.rar') or die("Не удалось открыть Rar архив");
$entry = rar_entry_get($rar_file, 'Dir/file.txt') or die("Не удалось найти такую запись");
echo "Размер распакованного элемента " . $entry->getName() . " = " . $entry->getPackedSize() . " байтов";
?>
]]>
</programlisting>
</example>
</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:"~/.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
-->