autodoc.git
/
traditional_manual
/
chapter_21.html
version
»
Context lines:
10
20
40
80
file
none
3
autodoc.git/traditional_manual/chapter_21.html:71179:
</dt> <dd><p><code><code class='object unresolved'>Buffer</code> <b><span class='method'>read_buffer</span>(</b><code class='datatype'>int</code> <code class='argument'>n</code><b>)</b></code><br> <code><code class='object unresolved'>Buffer</code> <b><span class='method'>read_buffer</span>(</b><code class='datatype'>int</code> <code class='argument'>n</code>, <code class='object unresolved'>bool</code> <code class='argument'>copy</code><b>)</b></code></p></dd> <dt class='head--doc'>Description</dt> <dd class='body--doc'><p>Same as <code>read</code>, but returns the result as an Buffer.</p> <p> No data is copied unless <code>copy</code> is specified and true, the new buffer points into the old one.</p> </dd> <dt class='head--doc'>Note</dt>
-
<dd class='body--doc'><p>As long as the subbuffer exists
no
data
can
be
added
to
the main buffer
.</p>
+
<dd class='body--doc'><p>As long as the subbuffer exists
the
main
buffer
is
locked
in
memory
.</p>
<p> Usually this is OK, since it often represents something that should be parsed before the next whatever is extracted from the buffer, but do take care.</p> </dd></dl> <hr /> <dl class='group--doc'> <dt class='head--type'><span class='homogen--type'>Method</span> <span class='homogen--name'><b>read_cstring</b></span>
autodoc.git/traditional_manual/chapter_21.html:71395:
<hr /> <dl class='group--doc'> <dt class='head--type'><span class='homogen--type'>Method</span> <span class='homogen--name'><b>read_only</b></span> </dt> <dd><p><code><code class='datatype'>void</code> <b><span class='method'>read_only</span>(</b><b>)</b></code></p></dd> <dt class='head--doc'>Description</dt>
-
<dd class='body--doc'><p>
Make
the buffer permanently read only.</p>
+
<dd class='body--doc'><p>
This
makes
the
existing data in the
buffer permanently read only.</p>
</dd> <dt class='head--doc'>Note</dt> <dd class='body--doc'><p>You can use lock() to do this temporarily.</p> </dd></dl> <hr /> <dl class='group--doc'> <dt class='head--type'><span class='homogen--type'>Method</span> <span class='homogen--name'><b>read_sint</b></span>