<!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="Llvm.Fcmp.html"> <link rel="next" href="Llvm.PassManager.html"> <link rel="Up" href="Llvm.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 modules" rel=Appendix href="index_modules.html"> <link title="Llvm" rel="Chapter" href="Llvm.html"> <link title="Llvm_analysis" rel="Chapter" href="Llvm_analysis.html"> <link title="Llvm_bitreader" rel="Chapter" href="Llvm_bitreader.html"> <link title="Llvm_bitwriter" rel="Chapter" href="Llvm_bitwriter.html"> <link title="Llvm_executionengine" rel="Chapter" href="Llvm_executionengine.html"> <link title="Llvm_scalar_opts" rel="Chapter" href="Llvm_scalar_opts.html"> <link title="Llvm_target" rel="Chapter" href="Llvm_target.html"><title>Llvm.MemoryBuffer</title> </head> <body> <div class="navbar"><a href="Llvm.Fcmp.html">Previous</a> <a href="Llvm.html">Up</a> <a href="Llvm.PassManager.html">Next</a> </div> <center><h1>Module <a href="type_Llvm.MemoryBuffer.html">Llvm.MemoryBuffer</a></h1></center> <br> <pre><span class="keyword">module</span> MemoryBuffer: <code class="code"><span class="keyword">sig</span></code> <a href="Llvm.MemoryBuffer.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><hr width="100%"> <pre><span class="keyword">val</span> <a name="VALof_file"></a>of_file : <code class="type">string -> <a href="Llvm.html#TYPEllmemorybuffer">Llvm.llmemorybuffer</a></code></pre><div class="info"> <code class="code">of_file p</code> is the memory buffer containing the contents of the file at path <code class="code">p</code>. If the file could not be read, then <code class="code"><span class="constructor">IoError</span> msg</code> is raised.<br> </div> <pre><span class="keyword">val</span> <a name="VALof_stdin"></a>of_stdin : <code class="type">unit -> <a href="Llvm.html#TYPEllmemorybuffer">Llvm.llmemorybuffer</a></code></pre><div class="info"> <code class="code">stdin ()</code> is the memory buffer containing the contents of standard input. If standard input is empty, then <code class="code"><span class="constructor">IoError</span> msg</code> is raised.<br> </div> <pre><span class="keyword">val</span> <a name="VALdispose"></a>dispose : <code class="type"><a href="Llvm.html#TYPEllmemorybuffer">Llvm.llmemorybuffer</a> -> unit</code></pre><div class="info"> Disposes of a memory buffer.<br> </div> </body></html>