Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > ba4e4dd7d8dab4a67407dfe1374e9686 > files > 14

ocaml-xmlrpc-light-devel-0.6.1-6.fc15.i686.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="XmlRpcDateTime.html">
<link rel="Up" href="index.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 attributes" rel=Appendix href="index_attributes.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="XmlRpc" rel="Chapter" href="XmlRpc.html">
<link title="XmlRpcServer" rel="Chapter" href="XmlRpcServer.html">
<link title="XmlRpcDateTime" rel="Chapter" href="XmlRpcDateTime.html">
<link title="XmlRpcBase64" rel="Chapter" href="XmlRpcBase64.html"><title>XmlRpcBase64</title>
</head>
<body>
<div class="navbar"><a href="XmlRpcDateTime.html">Previous</a>
&nbsp;<a href="index.html">Up</a>
&nbsp;</div>
<center><h1>Module <a href="type_XmlRpcBase64.html">XmlRpcBase64</a></h1></center>
<br>
<pre><span class="keyword">module</span> XmlRpcBase64: <code class="code">sig</code> <a href="XmlRpcBase64.html">..</a> <code class="code">end</code></pre>Base64 codec.
<p>

	8-bit characters are encoded into 6-bit ones using ASCII lookup tables.
	Default tables maps 0..63 values on characters A-Z, a-z, 0-9, '+' and '/'
	(in that order).<br>
<hr width="100%">
<pre><span class="keyword">exception</span> <a name="EXCEPTIONInvalid_char"></a>Invalid_char</pre>
<div class="info">
This exception is raised when reading an invalid character
	from a base64 input.<br>
</div>
<pre><span class="keyword">exception</span> <a name="EXCEPTIONInvalid_table"></a>Invalid_table</pre>
<div class="info">
This exception is raised if the encoding or decoding table
	size is not correct.<br>
</div>
<pre><span class="keyword">type</span> <a name="TYPEencoding_table"></a><code class="type"></code>encoding_table = <code class="type">char array</code> </pre>
<div class="info">
An encoding table maps integers 0..63 to the corresponding char.<br>
</div>

<pre><span class="keyword">type</span> <a name="TYPEdecoding_table"></a><code class="type"></code>decoding_table = <code class="type">int array</code> </pre>
<div class="info">
A decoding table maps chars 0..255 to the corresponding 0..63 value
 or -1 if the char is not accepted.<br>
</div>

<pre><span class="keyword">val</span> <a name="VALstr_encode"></a>str_encode : <code class="type">?tbl:<a href="XmlRpcBase64.html#TYPEencoding_table">encoding_table</a> -> string -> string</code></pre><div class="info">
Encode a string into Base64.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALstr_decode"></a>str_decode : <code class="type">?tbl:<a href="XmlRpcBase64.html#TYPEdecoding_table">decoding_table</a> -> string -> string</code></pre><div class="info">
Decode a string encoded into Base64, raise <code class="code">Invalid_char</code> if a
	character in the input string is not a valid one.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALencode"></a>encode : <code class="type">?tbl:<a href="XmlRpcBase64.html#TYPEencoding_table">encoding_table</a> -> char Stream.t -> char Stream.t</code></pre><div class="info">
Generic base64 encoding over a character stream.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALdecode"></a>decode : <code class="type">?tbl:<a href="XmlRpcBase64.html#TYPEdecoding_table">decoding_table</a> -> char Stream.t -> char Stream.t</code></pre><div class="info">
Generic base64 decoding over a character stream.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALmake_decoding_table"></a>make_decoding_table : <code class="type"><a href="XmlRpcBase64.html#TYPEencoding_table">encoding_table</a> -> <a href="XmlRpcBase64.html#TYPEdecoding_table">decoding_table</a></code></pre><div class="info">
Create a valid decoding table from an encoding one.<br>
</div>
</body></html>