<!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="Utils.html"> <link rel="next" href="Args.html"> <link rel="Up" href="index.html"> <link title="Index of types" rel=Appendix href="index_types.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="Tables" rel="Chapter" href="Tables.html"> <link title="Licenses" rel="Chapter" href="Licenses.html"> <link title="Utils" rel="Chapter" href="Utils.html"> <link title="Base64" rel="Chapter" href="Base64.html"> <link title="Args" rel="Chapter" href="Args.html"> <link title="Definitions" rel="Chapter" href="Definitions.html"> <link title="Icons" rel="Chapter" href="Icons.html"> <link title="Main" rel="Chapter" href="Main.html"> <link title="DefinitionLexer" rel="Chapter" href="DefinitionLexer.html"> <link title="Search_js" rel="Chapter" href="Search_js.html"> <link title="DefinitionParser" rel="Chapter" href="DefinitionParser.html"> <link title="Search" rel="Chapter" href="Search.html"> <link title="Version" rel="Chapter" href="Version.html"><title>Base64</title> </head> <body> <div class="navbar"><a class="pre" href="Utils.html" title="Utils">Previous</a> <a class="up" href="index.html" title="Index">Up</a> <a class="post" href="Args.html" title="Args">Next</a> </div> <h1>Module <a href="type_Base64.html">Base64</a></h1> <pre><span class="keyword">module</span> Base64: <code class="code">sig</code> <a href="Base64.html">..</a> <code class="code">end</code></pre><div class="info module top"> Base64 encoding.<br> </div> <hr width="100%"> <pre><span id="VALencode"><span class="keyword">val</span> encode</span> : <code class="type">?sz:int -> char Stream.t -> string</code></pre><div class="info "> <code class="code">encode ~sz st</code> returns the contents of the stream <code class="code">st</code> encoded in base64. <code class="code">sz</code> (defaulting to 256) is the initial size of the buffer used during encoding.<br> </div> <pre><span id="VALencode_string"><span class="keyword">val</span> encode_string</span> : <code class="type">string -> string</code></pre><div class="info "> <code class="code">encode_string s</code> returns the contents of the string <code class="code">s</code> encoded in base64.<br> </div> <pre><span id="VALencode_channel"><span class="keyword">val</span> encode_channel</span> : <code class="type">Pervasives.in_channel -> string</code></pre><div class="info "> <code class="code">encode_channel ch</code> returns the contents of the channel <code class="code">ch</code> (from the current position to the end of the channel) encoded in base64. <p> Raises an exception if an i/o error occurs.<br> </div> <pre><span id="VALencode_file"><span class="keyword">val</span> encode_file</span> : <code class="type">string -> string</code></pre><div class="info "> <code class="code">encode_file f</code> returns the contents of the file <code class="code">f</code> encoded in base64. <p> Raises an exception if either the file does not exist, or an i/o error occurs.<br> </div> </body></html>