<!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.ValueKind.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_ipo" rel="Chapter" href="Llvm_ipo.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 class="pre" href="Llvm.ValueKind.html" title="Llvm.ValueKind">Previous</a> <a class="up" href="Llvm.html" title="Llvm">Up</a> <a class="post" href="Llvm.PassManager.html" title="Llvm.PassManager">Next</a> </div> <h1>Module <a href="type_Llvm.MemoryBuffer.html">Llvm.MemoryBuffer</a></h1> <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 id="VALof_file"><span class="keyword">val</span> of_file</span> : <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 id="VALof_stdin"><span class="keyword">val</span> of_stdin</span> : <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 id="VALdispose"><span class="keyword">val</span> dispose</span> : <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>