Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > a228190325affd3a38a9ed14c6aaa02a > files > 178

ocaml-mm-devel-0.2.1-3.mga4.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="Ringbuffer.Make.html">
<link rel="Up" href="Ringbuffer.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of classes" rel=Appendix href="index_classes.html">
<link title="Index of class types" rel=Appendix href="index_class_types.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Index of module types" rel=Appendix href="index_module_types.html">
<link title="Audio" rel="Chapter" href="Audio.html">
<link title="Image" rel="Chapter" href="Image.html">
<link title="MIDI" rel="Chapter" href="MIDI.html">
<link title="Ringbuffer" rel="Chapter" href="Ringbuffer.html">
<link title="Synth" rel="Chapter" href="Synth.html">
<link title="Video" rel="Chapter" href="Video.html"><title>Ringbuffer.Make_ext</title>
</head>
<body>
<div class="navbar"><a class="pre" href="Ringbuffer.Make.html" title="Ringbuffer.Make">Previous</a>
&nbsp;<a class="up" href="Ringbuffer.html" title="Ringbuffer">Up</a>
&nbsp;</div>
<h1>Functor <a href="type_Ringbuffer.Make_ext.html">Ringbuffer.Make_ext</a></h1>

<pre><span class="keyword">module</span> Make_ext: <div class="sig_block"><code class="code">functor (</code><code class="code">E</code><code class="code"> : </code><code class="type"><a href="Ringbuffer.Elt.html">Elt</a></code><code class="code">) -&gt; </code><code class="type"><a href="Ringbuffer.R.html">R</a></code><code class="type">  with type elt = E.t</code></div></pre><div class="info module top">
Create an extensible ringbuffer: the size of the ringbuffer is extended if
    write space is too small at some point.<br>
</div>
<table border="0" cellpadding="3" width="100%">
<tr>
<td align="left" valign="top" width="1%%"><b>Parameters: </b></td>
<td>
<table class="paramstable">
<tr>
<td align="center" valign="top" width="15%">
<code>E</code></td>
<td align="center" valign="top">:</td>
<td><code class="type"><a href="Ringbuffer.Elt.html">Elt</a></code>
</table>
</td>
</tr>
</table>
<hr width="100%">

<pre><span id="TYPEelt"><span class="keyword">type</span> <code class="type"></code>elt</span> </pre>
<div class="info ">
Type of elements contained in the ringbuffer.<br>
</div>


<pre><span id="TYPEbuffer"><span class="keyword">type</span> <code class="type"></code>buffer</span> = <code class="type"><a href="Ringbuffer.R.html#TYPEelt">elt</a> array</code> </pre>
<div class="info ">
A buffer of elements.<br>
</div>


<pre><span id="TYPEt"><span class="keyword">type</span> <code class="type"></code>t</span> </pre>
<div class="info ">
A ringbuffer.<br>
</div>


<pre><span id="VALcreate"><span class="keyword">val</span> create</span> : <code class="type">int -> <a href="Ringbuffer.R.html#TYPEt">t</a></code></pre><div class="info ">
Create a ringbuffer of given size.<br>
</div>

<pre><span id="VALread_space"><span class="keyword">val</span> read_space</span> : <code class="type"><a href="Ringbuffer.R.html#TYPEt">t</a> -> int</code></pre><div class="info ">
Size of data available for reading.<br>
</div>

<pre><span id="VALwrite_space"><span class="keyword">val</span> write_space</span> : <code class="type"><a href="Ringbuffer.R.html#TYPEt">t</a> -> int</code></pre><div class="info ">
Size of space available for writing.<br>
</div>

<pre><span id="VALread_advance"><span class="keyword">val</span> read_advance</span> : <code class="type"><a href="Ringbuffer.R.html#TYPEt">t</a> -> int -> unit</code></pre><div class="info ">
Drop data.<br>
</div>

<pre><span id="VALwrite_advance"><span class="keyword">val</span> write_advance</span> : <code class="type"><a href="Ringbuffer.R.html#TYPEt">t</a> -> int -> unit</code></pre><div class="info ">
Advance the write pointer.<br>
</div>

<pre><span id="VALread"><span class="keyword">val</span> read</span> : <code class="type"><a href="Ringbuffer.R.html#TYPEt">t</a> -> <a href="Ringbuffer.R.html#TYPEbuffer">buffer</a> -> int -> int -> unit</code></pre><div class="info ">
Read data.<br>
</div>

<pre><span id="VALpeek"><span class="keyword">val</span> peek</span> : <code class="type"><a href="Ringbuffer.R.html#TYPEt">t</a> -> <a href="Ringbuffer.R.html#TYPEbuffer">buffer</a> -> int -> int -> unit</code></pre><div class="info ">
Same as <code class="code">read</code> but does not advance the read pointer.<br>
</div>

<pre><span id="VALwrite"><span class="keyword">val</span> write</span> : <code class="type"><a href="Ringbuffer.R.html#TYPEt">t</a> -> <a href="Ringbuffer.R.html#TYPEbuffer">buffer</a> -> int -> int -> unit</code></pre><div class="info ">
Write data.<br>
</div>

<pre><span id="VALtransmit"><span class="keyword">val</span> transmit</span> : <code class="type"><a href="Ringbuffer.R.html#TYPEt">t</a> -> (<a href="Ringbuffer.R.html#TYPEbuffer">buffer</a> -> int -> int -> int) -> int</code></pre><div class="info ">
Read all the data in the ringbuffer.<br>
</div>
</body></html>