Repository navigation
Expand file tree
/
Copy pathcqerl_datatypes.html
More file actions
121 lines (100 loc) · 7.32 KB
/
Copy pathcqerl_datatypes.html
File metadata and controls
121 lines (100 loc) · 7.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Module cqerl_datatypes</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc">
</head>
<body bgcolor="white">
<div class="navbar"><a name="#navbar_top"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
<hr>
<h1>Module cqerl_datatypes</h1>
<ul class="index"><li><a href="#index">Function Index</a></li><li><a href="#functions">Function Details</a></li></ul>
<h2><a name="index">Function Index</a></h2>
<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#decode_bytes-1">decode_bytes/1</a></td><td></td></tr>
<tr><td valign="top"><a href="#decode_data-1">decode_data/1</a></td><td></td></tr>
<tr><td valign="top"><a href="#decode_long_string-1">decode_long_string/1</a></td><td></td></tr>
<tr><td valign="top"><a href="#decode_map_to_proplist-1">decode_map_to_proplist/1</a></td><td></td></tr>
<tr><td valign="top"><a href="#decode_multimap_to_proplist-1">decode_multimap_to_proplist/1</a></td><td></td></tr>
<tr><td valign="top"><a href="#decode_short_bytes-1">decode_short_bytes/1</a></td><td></td></tr>
<tr><td valign="top"><a href="#decode_string-1">decode_string/1</a></td><td></td></tr>
<tr><td valign="top"><a href="#decode_string_list-1">decode_string_list/1</a></td><td></td></tr>
<tr><td valign="top"><a href="#encode_bytes-1">encode_bytes/1</a></td><td>Encode a binary (max length 2^32) into the wire format required by the protocol.</td></tr>
<tr><td valign="top"><a href="#encode_data-1">encode_data/1</a></td><td></td></tr>
<tr><td valign="top"><a href="#encode_long_string-1">encode_long_string/1</a></td><td>Encode a long UTF8 binary or string (max length 2^32) into the wire format required by the protocol.</td></tr>
<tr><td valign="top"><a href="#encode_proplist_to_map-1">encode_proplist_to_map/1</a></td><td>Encode a proplist into a string map (<code>[string] -> [string]</code>), in the wire format required by the protocol.</td></tr>
<tr><td valign="top"><a href="#encode_proplist_to_multimap-1">encode_proplist_to_multimap/1</a></td><td>Encode a proplist into a string multimap (<code>[string] -> { [string], [string], ... }</code>), in the wire format required by the protocol.</td></tr>
<tr><td valign="top"><a href="#encode_short_bytes-1">encode_short_bytes/1</a></td><td>Encode a binary (max length 2^16) into the wire format required by the protocol.</td></tr>
<tr><td valign="top"><a href="#encode_string-1">encode_string/1</a></td><td>Encode a UTF8 binary or string (max length of 2^16) into the wire format required by the protocol.</td></tr>
<tr><td valign="top"><a href="#encode_string_list-1">encode_string_list/1</a></td><td>Encode a string list into the wire format required by the protocol.</td></tr>
</table>
<h2><a name="functions">Function Details</a></h2>
<h3 class="function"><a name="decode_bytes-1">decode_bytes/1</a></h3>
<div class="spec">
<p><tt>decode_bytes(Bin) -> any()</tt></p>
</div>
<h3 class="function"><a name="decode_data-1">decode_data/1</a></h3>
<div class="spec">
<p><tt>decode_data(X1::{Type::<a href="#type-datatype">datatype()</a>, Buffer::binary()}) -> {Value::term(), Rest::binary()}</tt><br></p>
</div>
<h3 class="function"><a name="decode_long_string-1">decode_long_string/1</a></h3>
<div class="spec">
<p><tt>decode_long_string(Bin) -> any()</tt></p>
</div>
<h3 class="function"><a name="decode_map_to_proplist-1">decode_map_to_proplist/1</a></h3>
<div class="spec">
<p><tt>decode_map_to_proplist(X1) -> any()</tt></p>
</div>
<h3 class="function"><a name="decode_multimap_to_proplist-1">decode_multimap_to_proplist/1</a></h3>
<div class="spec">
<p><tt>decode_multimap_to_proplist(X1) -> any()</tt></p>
</div>
<h3 class="function"><a name="decode_short_bytes-1">decode_short_bytes/1</a></h3>
<div class="spec">
<p><tt>decode_short_bytes(Bin) -> any()</tt></p>
</div>
<h3 class="function"><a name="decode_string-1">decode_string/1</a></h3>
<div class="spec">
<p><tt>decode_string(Bin) -> any()</tt></p>
</div>
<h3 class="function"><a name="decode_string_list-1">decode_string_list/1</a></h3>
<div class="spec">
<p><tt>decode_string_list(X1) -> any()</tt></p>
</div>
<h3 class="function"><a name="encode_bytes-1">encode_bytes/1</a></h3>
<div class="spec">
<p><tt>encode_bytes(String::binary()) -> {ok, bitstring()} | {error, badarg}</tt><br></p>
</div><p>Encode a binary (max length 2^32) into the wire format required by the protocol</p>
<h3 class="function"><a name="encode_data-1">encode_data/1</a></h3>
<div class="spec">
<p><tt>encode_data(X1::{Type::<a href="#type-datatype">datatype()</a>, Value::term()}) -> binary()</tt><br></p>
</div>
<h3 class="function"><a name="encode_long_string-1">encode_long_string/1</a></h3>
<div class="spec">
<p><tt>encode_long_string(String::string() | binary()) -> {ok, bitstring()} | {error, badarg}</tt><br></p>
</div><p>Encode a long UTF8 binary or string (max length 2^32) into the wire format required by the protocol</p>
<h3 class="function"><a name="encode_proplist_to_map-1">encode_proplist_to_map/1</a></h3>
<div class="spec">
<p><tt>encode_proplist_to_map(PropList::[{atom() | binary(), binary()}]) -> {ok, bitstring()} | {error, badarg}</tt><br></p>
</div><p>Encode a proplist into a string map (<code>[string] -> [string]</code>), in the wire format required by the protocol.</p>
<h3 class="function"><a name="encode_proplist_to_multimap-1">encode_proplist_to_multimap/1</a></h3>
<div class="spec">
<p><tt>encode_proplist_to_multimap(PropList::[{atom() | binary(), [binary()]}]) -> {ok, bitstring()} | {error, badarg}</tt><br></p>
</div><p>Encode a proplist into a string multimap (<code>[string] -> { [string], [string], ... }</code>), in the wire format required by the protocol.</p>
<h3 class="function"><a name="encode_short_bytes-1">encode_short_bytes/1</a></h3>
<div class="spec">
<p><tt>encode_short_bytes(String::binary()) -> {ok, bitstring()} | {error, badarg}</tt><br></p>
</div><p>Encode a binary (max length 2^16) into the wire format required by the protocol</p>
<h3 class="function"><a name="encode_string-1">encode_string/1</a></h3>
<div class="spec">
<p><tt>encode_string(String::string() | binary()) -> {ok, bitstring()} | {error, badarg}</tt><br></p>
</div><p>Encode a UTF8 binary or string (max length of 2^16) into the wire format required by the protocol</p>
<h3 class="function"><a name="encode_string_list-1">encode_string_list/1</a></h3>
<div class="spec">
<p><tt>encode_string_list(StringList::[binary() | string()]) -> {ok, bitstring()} | {error, badarg}</tt><br></p>
</div><p>Encode a string list into the wire format required by the protocol.</p>
<hr>
<div class="navbar"><a name="#navbar_bottom"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
<p><i>Generated by EDoc, Nov 26 2013, 09:49:06.</i></p>
</body>
</html>