Files
Leonardo Lara Rodrigues cf27151e17 Tranlations to many oudated/abandoned/missing pages (#360)
* Updates to abandoned/outdated pages in reference/array/functions/

* Updates to outdated/abandoned pages and new translations in reference/classobj/

* Updates to abandoned/outdated pages in reference/ctype/

* Correction to double-byte UTF-8 character which is similar to 'E'

* Correction of translation

* Updates to abandoned/outdated files and new translations in reference/dir/

* Updates to abandoned/outdated files in reference/mysqli/

* New translation of reference/sockets/functions/socket-atmark.xml

* New translation of reference/stream/*

* Corrections after QA scripts

* Delete reference/stream/versions.xml

Arquivo marcado para não tradução.

---------

Co-authored-by: LEONARDO LARA RODRIGUES <leonardolara@github.com>
Co-authored-by: alfsb <alfsb@users.noreply.github.com>
2023-11-23 14:00:30 -03:00

125 lines
2.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: af4410a7e15898c3dbe83d6ea38246745ed9c6fb Maintainer: leonardolara Status: ready -->
<refentry xml:id="streamwrapper.stream-write" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>streamWrapper::stream_write</refname>
<refpurpose>Escreve no fluxo</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <type>int</type><methodname>streamWrapper::stream_write</methodname>
<methodparam><type>string</type><parameter>data</parameter></methodparam>
</methodsynopsis>
<para>
Este método é chamado em resposta a <function>fwrite</function>.
</para>
<note>
<para>
Lembre-se de atualizar a posição atual do fluxo com o número de bytes
que foram escritos com sucesso.
</para>
</note>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>data</parameter></term>
<listitem>
<para>
Deve ser armazenado no fluxo subjacente.
</para>
<note>
<para>
Se não houver espaço suficiente no fluxo subjacente, armazena o quanto
for possível.
</para>
</note>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Deve retornar o número de bytes que foram armazenados com sucesso, ou 0 se
nenhum pôde ser armazenado.
</para>
</refsect1>
<refsect1 role="errors"><!-- {{{ -->
&reftitle.errors;
&userstream.not.implemented.warning;
<note>
<para>
Se o valor de retorno for maior que o comprimento de
<parameter>data</parameter>, um aviso <constant>E_WARNING</constant> será
emitido e o valor de retorno será truncado para o seu comprimento.
</para>
</note>
</refsect1><!-- }}} -->
<!--
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title><function>streamWrapper::stream_write</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
/* ... */
?>
]]>
</programlisting>
&example.outputs.similar;
<screen>
<![CDATA[
...
]]>
</screen>
</example>
</para>
</refsect1>
-->
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>fwrite</function></member>
</simplelist>
</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
-->