Branch: Tag:

2014-09-29

2014-09-29 07:37:00 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio.File: Support buffering in read().

Stdio.File()->read() now reads from the input buffer if there is one,
and then from the actual fd.

488:      <hr />   <dl class='group--doc'> + <dt class='head--type'><span class='homogen--type'>Method</span> + <span class='homogen--name'><b>read</b></span> + </dt> + <dd><p><code><code class='datatype'>string(8bit)</code> <b><span class='method'>read</span>(</b><code class='datatype'>int</code>|<code class='datatype'>void</code> <code class='argument'>nbytes</code>, <code class='datatype'>bool</code>|<code class='datatype'>void</code> <code class='argument'>not_all</code><b>)</b></code></p></dd> +  + <dt class='head--doc'>Description</dt> + <dd class='body--doc'><p>Read (optionally buffered) data from a file or a stream.</p> + <p> Proxy function for <code>Fd::read()</code>, that adds support for +  the buffering configured by <code>set_buffer_mode()</code></p> + </dd> + <dt class='head--doc'>See also</dt> + <dd class='body--doc'><p><code>read_function()</code>, <code>write()</code>, <code>Fd::read()</code></p> + </dd></dl> +  +  + <hr /> + <dl class='group--doc'>   <dt class='head--type'><span class='homogen--type'>Typedef</span>   <span class='homogen--name'><b>read_callback_t</b></span>   </dt>