reference/stream/functions/stream-set-write-buffer.xml
c3067ab0a7f55632c87da73368fd3c739e110a57
...
...
@@ -11,18 +11,12 @@
11
11
<methodsynopsis>
12
12
<type>int</type><methodname>stream_set_write_buffer</methodname>
13
13
<methodparam><type>resource</type><parameter>stream</parameter></methodparam>
14
-
<methodparam><type>int</type><parameter>buffer</parameter></methodparam>
14
+
<methodparam><type>int</type><parameter>size</parameter></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
Sets the buffering for write operations on the given <parameter>stream</parameter>
18
-
to <parameter>buffer</parameter> bytes.
18
+
to <parameter>size</parameter> bytes.
19
19
</para>
20
-
<simpara>
21
-
Output using <function>fwrite</function> is normally buffered at
22
-
8K. This means that if there are two processes wanting to write
23
-
to the same output stream (a file), each is paused after 8K of
24
-
data to allow the other to write.
25
-
</simpara>
26
20
</refsect1>
27
21

28
22
<refsect1 role="parameters">
...
...
@@ -38,10 +32,10 @@
38
32
</listitem>
39
33
</varlistentry>
40
34
<varlistentry>
41
-
<term><parameter>buffer</parameter></term>
35
+
<term><parameter>size</parameter></term>
42
36
<listitem>
43
37
<para>
44
-
The number of bytes to buffer. If <parameter>buffer</parameter>
38
+
The number of bytes to buffer. If <parameter>size</parameter>
45
39
is 0 then write operations are unbuffered. This ensures that all writes
46
40
with <function>fwrite</function> are completed before other processes are
47
41
allowed to write to that output stream.
...
...
@@ -95,7 +89,6 @@ if ($fp) {
95
89
</refsect1>
96
90

97
91
</refentry>
98
-

99
92
<!-- Keep this comment at the end of the file
100
93
Local variables:
101
94
mode: sgml
102
95