autodoc.git / traditional_manual / chapter_9.html

version» Context lines:

autodoc.git/traditional_manual/chapter_9.html:1:   <!doctype html><html><head><title>Pike Reference Manual</title>   <meta charset='utf-8'></head>   <body><dl><dt><h1 class='header'>9. I/O</h1></dt><dd><dl><dt><h2 class='header'>Class <b class='ms datatype'>Stdio.File</b></h2>   </dt><dd><dl class='group--doc'>   <dt class='head--doc'>Description</dt>   <dd class='body--doc'><p>This is the basic I/O object, it provides socket and pipe    communication as well as file access. It does not buffer reads and -  writes or provide line-by-line reading, that is done with -  <code>Stdio.FILE</code> object.</p> +  writes by default, and provides no line-by-line reading, that is done +  with <code>Stdio.FILE</code> object.</p>   </dd>   <dt class='head--doc'>Note</dt>   <dd class='body--doc'><p>The file or stream will normally be closed when this object is    destructed (unless there are more objects that refer to the same    file through use of <code>assign</code> or <code>dup</code>). Objects do not contain    cyclic references in themselves, so they will be destructed timely    when they run out of references.</p>   </dd>   <dt class='head--doc'>See also</dt>   <dd class='body--doc'><p><code>Stdio.FILE</code></p>
autodoc.git/traditional_manual/chapter_9.html:1559:      <hr />   <dl class='group--doc'>   <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'>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 + <p> In this mode reading and writing will be done via IOBuffer    objects, in the directions you included buffers.</p>   </dd> -  + <dt class='head--doc'><span id='p-in'></span>Parameter <code class='parameter'>in</code></dt> + <dd></dd><dd class='body--doc'><p>Input buffer.</p> + </dd> + <dt class='head--doc'><span id='p-out'></span>Parameter <code class='parameter'>out</code></dt> + <dd></dd><dd class='body--doc'><p>Output buffer.</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 output mode as well, but simply    adding more data to the output buffer will work as well.</p>   </dd></dl>         <hr />