Branch: Tag:

2014-09-03

2014-09-03 18:45:49 by Per Hedbor <ph@opera.com>

Allow setting and unsetting buffers for each direction

1535:   <dt class='head--type'><span class='homogen--type'>Method</span>   <span class='homogen--name'><b>set_buffer_mode</b></span>   </dt> - <dd><p><code><code class='datatype'>void</code> <b><span class='method'>set_buffer_mode</span>(</b><code class='object unresolved'>Stdio.IOBuffer</code>|<code class='datatype'>void</code> <code class='argument'>in</code>, <code class='object unresolved'>Stdio.IOBuffer</code>|<code class='datatype'>void</code> <code class='argument'>out</code><b>)</b></code></p></dd> + <dd><p><code><code class='datatype'>void</code> <b><span class='method'>set_buffer_mode</span>(</b><code class='object unresolved'>Stdio.IOBuffer</code>|<code class='datatype'>int(0..0)</code> <code class='argument'>in</code>, <code class='object unresolved'>Stdio.IOBuffer</code>|<code class='datatype'>int(0..0)</code> <code class='argument'>out</code><b>)</b></code></p></dd>      <dt class='head--doc'>Description</dt>   <dd class='body--doc'><p>Toggle the file to IOBuffer mode.</p> - <p> In this mode reading and writing will be done from IOBuffer objects,</p> - <p> It is assumed that the file will be used in non-blocking mode.</p> - <p> If <code>in</code> or <code>out</code> that specific buffer is used for the specified direction.</p> - <p> The default is to create new buffers for both directions when -  this function is called.</p> + <p> In this mode reading and writing will be done from IOBuffer +  objects, in the directions you included buffers.</p>   </dd>   <dt class='head--doc'>Note</dt>   <dd class='body--doc'><p>Normally you call <code>write</code> to re-trigger the write callback if    you do not output anything in it (which will stop it from    re-occuring again).</p> - <p> This will work with buffered mode as well, but simply adding more -  data to the output buffer will work as well.</p> + <p> This will work with buffered output mode as well, but simply +  adding more data to the output buffer will work as well.</p>   </dd></dl>