autodoc.git
/
traditional_manual
/
chapter_9.html
version
»
Context lines:
10
20
40
80
file
none
3
autodoc.git/traditional_manual/chapter_9.html:6475:
<dd class='example'><pre><pre><code><span class='comment'>// get the next whitespace separated word from the buffer.</span> buffer->match<span class='delim'>(</span><span class='string'>"%*[ \t\r\n]%*[^ \t\r\n]"</span><span class='delim'>)</span><span class='delim'>;</span> </code></pre></pre></dd></dl> <hr /> <dl class='group--doc'> <dt class='head--type'><span class='homogen--type'>Method</span> <span class='homogen--name'><b>output_to</b></span> </dt>
-
<dd><p><code><code class='datatype'>int</code> <b><span class='method'>output_to</span>(</b><code class='object unresolved'>Stdio.Stream</code> <code class='argument'>f</code>, <code class='datatype'>int</code>|<code class='datatype'>void</code> <code class='argument'>nbytes</code><b>)</b></code></p></dd>
+
<dd><p><code><code class='datatype'>int
(-1..)
</code> <b><span class='method'>output_to</span>(</b><code class='object unresolved'>Stdio.Stream</code> <code class='argument'>f</code>, <code class='datatype'>int
(0..)
</code>|<code class='datatype'>void</code> <code class='argument'>nbytes</code><b>)</b></code></p></dd>
<dt class='head--doc'>Description</dt> <dd class='body--doc'><p>Write data from the buffer to the indicated file.</p>
-
<
p
>
Will
return
the
number of bytes that were successfully written.
</
p
>
-
<
p
> If <code>nbytes</code> is not specified the whole buffer will be written
+
<
/dd
>
+
<dt
class='head--doc'><span
id='p-nbytes'></span>Parameter
<code
class='parameter'>nbytes
</
code
>
</dt>
+
<
dd></dd><dd class='body--doc'><
p>If <code>nbytes</code> is not specified the whole buffer will be written
if possible. Otherwise at most <code>nbytes</code> will be written.</p>
-
+
</dd>
+
<dt class='head--doc'>Returns</dt>
+
<dd class='body--doc'><p>Will return the number of bytes that were successfully written.</p>
+
<p> If no bytes were successfully written and <code class='expr'>f->write()</code> failed
+
with an error <code class='expr'>-1</code> will be returned.</p>
</dd></dl> <hr /> <dl class='group--doc'> <dt class='head--type'><span class='homogen--type'>Method</span> <span class='homogen--name'><b>range_error</b></span> </dt> <dd><p><code><code class='modifier'>protected</code> <code class='object unresolved'>bool</code> <b><span class='method'>range_error</span>(</b><code class='datatype'>int</code> <code class='argument'>howmuch</code><b>)</b></code></p></dd>