1
0
mirror of https://github.com/php/doc-tr.git synced 2026-03-24 23:32:06 +01:00
Files
archived-doc-tr/reference/stream/functions/stream-set-write-buffer.xml
2021-12-16 11:31:57 +03:00

113 lines
3.0 KiB
XML
Raw Permalink 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"?>
<!-- EN-Revision: c3067ab0a7f55632c87da73368fd3c739e110a57 Maintainer: nilgun Status: ready -->
<refentry xml:id="function.stream-set-write-buffer" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>stream_set_write_buffer</refname>
<refpurpose>Belirtilen akımda dosya yazma tamponunu ayarlar</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>stream_set_write_buffer</methodname>
<methodparam><type>resource</type><parameter>akım</parameter></methodparam>
<methodparam><type>int</type><parameter>boyut</parameter></methodparam>
</methodsynopsis>
<para>
<parameter>akım</parameter> üzerinde yazma işlemleri için
<parameter>boyut</parameter> baytlık tamponu etkin kılar.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>akım</parameter></term>
<listitem>
<para>
Dosya tanıtıcısı.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>boyut</parameter></term>
<listitem>
<para>
Tamponun bayt sayısı. <literal>0</literal> belirtilirse yazma işlemleri
tamponsuz yapılır. Böylece, çıktı akımına dığer süreçlerin yazmasına
izin vermeden önce <function>fwrite</function> ile yapılan tüm yazma
işlemlerinin tamamlanması sağlanır.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Başarı durumunda <literal>0</literal>, istek yerine getirilememişse
sıfırdan farklı bir değer döner.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>- <function>stream_set_write_buffer</function> örneği</title>
<para>
Aşağıdaki örnekte <function>stream_set_write_buffer</function> işlevinin
bir tamponsuz akım oluşturmak için kullanımı gösterilmiştir.
</para>
<programlisting role="php">
<![CDATA[
<?php
$dt = fopen($file, "w");
if ($dt) {
if (stream_set_write_buffer($fp, 0) !== 0) {
// tampon ayarlanamadı
}
fwrite($dt, $output);
fclose($dt);
}
?>
]]>
</programlisting>
</example>
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<simplelist>
<member><function>fopen</function></member>
<member><function>fwrite</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
-->