rumai 3.2.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CREDITS +4 -3
- data/HISTORY +327 -0
- data/INSTALL +31 -0
- data/README +92 -0
- data/USAGE +297 -0
- data/bin/rumai +9 -22
- data/doc/api/IO.html +119 -0
- data/doc/api/Integer.html +171 -0
- data/doc/api/Rumai.html +1270 -0
- data/doc/api/Rumai/Area.html +1485 -0
- data/doc/api/Rumai/Chain.html +301 -0
- data/doc/api/Rumai/Client.html +2451 -0
- data/doc/api/Rumai/ClientContainer.html +301 -0
- data/doc/api/Rumai/ExportInstanceMethods.html +103 -0
- data/doc/api/Rumai/IXP.html +94 -0
- data/doc/api/Rumai/IXP/Agent.html +1625 -0
- data/doc/api/Rumai/IXP/Agent/FidStream.html +959 -0
- data/doc/api/Rumai/IXP/Agent/RangedPool.html +381 -0
- data/doc/api/Rumai/IXP/Error.html +110 -0
- data/doc/api/Rumai/IXP/Fcall.html +503 -0
- data/doc/api/Rumai/IXP/Qid.html +207 -0
- data/doc/api/Rumai/IXP/Rattach.html +148 -0
- data/doc/api/Rumai/IXP/Rauth.html +148 -0
- data/doc/api/Rumai/IXP/Rclunk.html +148 -0
- data/doc/api/Rumai/IXP/Rcreate.html +148 -0
- data/doc/api/Rumai/IXP/Rerror.html +148 -0
- data/doc/api/Rumai/IXP/Rflush.html +148 -0
- data/doc/api/Rumai/IXP/Ropen.html +148 -0
- data/doc/api/Rumai/IXP/Rread.html +148 -0
- data/doc/api/Rumai/IXP/Rremove.html +148 -0
- data/doc/api/Rumai/IXP/Rstat.html +148 -0
- data/doc/api/Rumai/IXP/Rversion.html +148 -0
- data/doc/api/Rumai/IXP/Rwalk.html +148 -0
- data/doc/api/Rumai/IXP/Rwrite.html +148 -0
- data/doc/api/Rumai/IXP/Rwstat.html +148 -0
- data/doc/api/Rumai/IXP/Stat.html +335 -0
- data/doc/api/Rumai/IXP/Stream.html +194 -0
- data/doc/api/Rumai/IXP/Struct.html +586 -0
- data/doc/api/Rumai/IXP/Struct/ClassField.html +242 -0
- data/doc/api/Rumai/IXP/Struct/Field.html +782 -0
- data/doc/api/Rumai/IXP/Struct/Field/CounteeField.html +227 -0
- data/doc/api/Rumai/IXP/Struct/Field/CounterField.html +153 -0
- data/doc/api/Rumai/IXP/Struct/Integer8Field.html +242 -0
- data/doc/api/Rumai/IXP/Struct/StringField.html +206 -0
- data/doc/api/Rumai/IXP/Tattach.html +148 -0
- data/doc/api/Rumai/IXP/Tauth.html +148 -0
- data/doc/api/Rumai/IXP/Tclunk.html +148 -0
- data/doc/api/Rumai/IXP/Tcreate.html +148 -0
- data/doc/api/Rumai/IXP/Terror.html +231 -0
- data/doc/api/Rumai/IXP/Tflush.html +148 -0
- data/doc/api/Rumai/IXP/Topen.html +240 -0
- data/doc/api/Rumai/IXP/Tread.html +148 -0
- data/doc/api/Rumai/IXP/Tremove.html +148 -0
- data/doc/api/Rumai/IXP/Tstat.html +148 -0
- data/doc/api/Rumai/IXP/Tversion.html +162 -0
- data/doc/api/Rumai/IXP/Twalk.html +148 -0
- data/doc/api/Rumai/IXP/Twrite.html +148 -0
- data/doc/api/Rumai/IXP/Twstat.html +148 -0
- data/doc/api/Rumai/Node.html +1406 -0
- data/doc/api/Rumai/View.html +1587 -0
- data/doc/api/Rumai/WidgetImpl.html +333 -0
- data/doc/api/Rumai/WidgetNode.html +246 -0
- data/doc/api/String.html +258 -0
- data/doc/api/StringIO.html +119 -0
- data/doc/api/Time.html +247 -0
- data/doc/api/_index.html +581 -0
- data/doc/api/class_list.html +36 -0
- data/doc/api/css/common.css +1 -0
- data/doc/api/css/full_list.css +50 -0
- data/doc/api/css/style.css +273 -0
- data/doc/api/file.LICENSE.html +73 -0
- data/doc/api/file_list.html +38 -0
- data/doc/api/frames.html +13 -0
- data/doc/api/index.html +72 -13
- data/doc/api/js/app.js +111 -0
- data/doc/api/js/full_list.js +117 -0
- data/doc/api/js/{jquery-1.3.2.min.js → jquery.js} +0 -0
- data/doc/api/method_list.html +1483 -0
- data/doc/api/top-level-namespace.html +89 -0
- data/doc/index.erb +18 -13
- data/doc/index.html +331 -386
- data/lib/rumai.rb +1 -18
- data/lib/rumai/fs.rb +11 -11
- data/lib/rumai/inochi.rb +48 -0
- data/lib/rumai/inochi.yaml +94 -0
- data/lib/rumai/ixp.rb +0 -4
- data/lib/rumai/ixp/message.rb +6 -17
- data/lib/rumai/ixp/transport.rb +39 -30
- data/lib/rumai/wm.rb +35 -37
- data/test/rumai/inochi_test.rb +17 -0
- data/test/rumai/ixp/message_test.rb +245 -0
- data/test/runner +25 -0
- data/test/test_helper.rb +1 -0
- metadata +107 -125
- data/doc/api/apple-touch-icon.png +0 -0
- data/doc/api/classes/IO.html +0 -72
- data/doc/api/classes/Integer.html +0 -110
- data/doc/api/classes/Object.html +0 -60
- data/doc/api/classes/Rumai.html +0 -837
- data/doc/api/classes/Rumai/Area.html +0 -909
- data/doc/api/classes/Rumai/Chain.html +0 -197
- data/doc/api/classes/Rumai/Client.html +0 -1526
- data/doc/api/classes/Rumai/ClientContainer.html +0 -191
- data/doc/api/classes/Rumai/ExportInstanceMethods.html +0 -69
- data/doc/api/classes/Rumai/IXP.html +0 -131
- data/doc/api/classes/Rumai/IXP/Agent.html +0 -941
- data/doc/api/classes/Rumai/IXP/Agent/FidStream.html +0 -456
- data/doc/api/classes/Rumai/IXP/Agent/MODES.html +0 -108
- data/doc/api/classes/Rumai/IXP/Agent/RangedPool.html +0 -241
- data/doc/api/classes/Rumai/IXP/Error.html +0 -67
- data/doc/api/classes/Rumai/IXP/Fcall.html +0 -323
- data/doc/api/classes/Rumai/IXP/Qid.html +0 -153
- data/doc/api/classes/Rumai/IXP/Rattach.html +0 -67
- data/doc/api/classes/Rumai/IXP/Rauth.html +0 -67
- data/doc/api/classes/Rumai/IXP/Rclunk.html +0 -67
- data/doc/api/classes/Rumai/IXP/Rcreate.html +0 -67
- data/doc/api/classes/Rumai/IXP/Rerror.html +0 -67
- data/doc/api/classes/Rumai/IXP/Rflush.html +0 -67
- data/doc/api/classes/Rumai/IXP/Ropen.html +0 -67
- data/doc/api/classes/Rumai/IXP/Rread.html +0 -67
- data/doc/api/classes/Rumai/IXP/Rremove.html +0 -67
- data/doc/api/classes/Rumai/IXP/Rstat.html +0 -67
- data/doc/api/classes/Rumai/IXP/Rversion.html +0 -67
- data/doc/api/classes/Rumai/IXP/Rwalk.html +0 -67
- data/doc/api/classes/Rumai/IXP/Rwrite.html +0 -67
- data/doc/api/classes/Rumai/IXP/Rwstat.html +0 -67
- data/doc/api/classes/Rumai/IXP/Stat.html +0 -252
- data/doc/api/classes/Rumai/IXP/Stream.html +0 -131
- data/doc/api/classes/Rumai/IXP/Struct.html +0 -311
- data/doc/api/classes/Rumai/IXP/Struct/Field.html +0 -415
- data/doc/api/classes/Rumai/IXP/Struct/Field/CounteeField.html +0 -153
- data/doc/api/classes/Rumai/IXP/Struct/Field/CounterField.html +0 -104
- data/doc/api/classes/Rumai/IXP/Tattach.html +0 -68
- data/doc/api/classes/Rumai/IXP/Tauth.html +0 -67
- data/doc/api/classes/Rumai/IXP/Tclunk.html +0 -67
- data/doc/api/classes/Rumai/IXP/Tcreate.html +0 -68
- data/doc/api/classes/Rumai/IXP/Terror.html +0 -110
- data/doc/api/classes/Rumai/IXP/Tflush.html +0 -67
- data/doc/api/classes/Rumai/IXP/Topen.html +0 -165
- data/doc/api/classes/Rumai/IXP/Tread.html +0 -67
- data/doc/api/classes/Rumai/IXP/Tremove.html +0 -67
- data/doc/api/classes/Rumai/IXP/Tstat.html +0 -67
- data/doc/api/classes/Rumai/IXP/Tversion.html +0 -86
- data/doc/api/classes/Rumai/IXP/Twalk.html +0 -68
- data/doc/api/classes/Rumai/IXP/Twrite.html +0 -68
- data/doc/api/classes/Rumai/IXP/Twstat.html +0 -67
- data/doc/api/classes/Rumai/Node.html +0 -821
- data/doc/api/classes/Rumai/View.html +0 -967
- data/doc/api/classes/Rumai/WidgetImpl.html +0 -65
- data/doc/api/classes/Rumai/WidgetNode.html +0 -68
- data/doc/api/classes/String.html +0 -163
- data/doc/api/classes/StringIO.html +0 -72
- data/doc/api/classes/Time.html +0 -156
- data/doc/api/created.rid +0 -1
- data/doc/api/css/main.css +0 -263
- data/doc/api/css/panel.css +0 -383
- data/doc/api/css/reset.css +0 -53
- data/doc/api/favicon.ico +0 -0
- data/doc/api/files/CREDITS.html +0 -67
- data/doc/api/files/LICENSE.html +0 -76
- data/doc/api/files/lib/rumai/fs_rb.html +0 -75
- data/doc/api/files/lib/rumai/ixp/message_rb.html +0 -91
- data/doc/api/files/lib/rumai/ixp/transport_rb.html +0 -75
- data/doc/api/files/lib/rumai/ixp_rb.html +0 -69
- data/doc/api/files/lib/rumai/wm_rb.html +0 -77
- data/doc/api/files/lib/rumai_rb.html +0 -65
- data/doc/api/i/arrows.png +0 -0
- data/doc/api/i/results_bg.png +0 -0
- data/doc/api/i/tree_bg.png +0 -0
- data/doc/api/js/jquery-effect.js +0 -593
- data/doc/api/js/main.js +0 -22
- data/doc/api/js/searchdoc.js +0 -628
- data/doc/api/panel/index.html +0 -71
- data/doc/api/panel/search_index.js +0 -1
- data/doc/api/panel/tree.js +0 -1
- data/doc/history.erb +0 -233
- data/doc/intro.erb +0 -70
- data/doc/setup.erb +0 -144
- data/doc/usage.erb +0 -308
- data/rakefile +0 -14
- data/test/rumai/ixp/message.rb +0 -237
@@ -0,0 +1,227 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta name="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>Module: Rumai::IXP::Struct::Field::CounteeField</title>
|
7
|
+
<link rel="stylesheet" href="../../../../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="../../../../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
|
+
|
10
|
+
<script type="text/javascript" charset="utf-8">
|
11
|
+
relpath = '../../../..';
|
12
|
+
if (relpath != '') relpath += '/';
|
13
|
+
</script>
|
14
|
+
<script type="text/javascript" charset="utf-8" src="../../../../js/jquery.js"></script>
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../../../../js/app.js"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body>
|
19
|
+
<script type="text/javascript" charset="utf-8">
|
20
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
21
|
+
</script>
|
22
|
+
|
23
|
+
<div id="header">
|
24
|
+
<div id="menu">
|
25
|
+
|
26
|
+
<a href="../../../../_index.html">Index (C)</a> »
|
27
|
+
<span class='title'><a href="../../../../Rumai.html" title="Rumai (module)">Rumai</a></span> » <span class='title'><a href="../../../IXP.html" title="Rumai::IXP (module)">IXP</a></span> » <span class='title'><a href="../../Struct.html" title="Rumai::IXP::Struct (module)">Struct</a></span> » <span class='title'><a href="../Field.html" title="Rumai::IXP::Struct::Field (class)">Field</a></span>
|
28
|
+
»
|
29
|
+
<span class="title">CounteeField</span>
|
30
|
+
|
31
|
+
|
32
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="search">
|
36
|
+
<a id="class_list_link" href="#">Class List</a>
|
37
|
+
<a id="method_list_link" href="#">Method List</a>
|
38
|
+
<a id ="file_list_link" href="#">File List</a>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<div class="clear"></div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
<iframe id="search_frame"></iframe>
|
45
|
+
|
46
|
+
<div id="content"><h1>Module: Rumai::IXP::Struct::Field::CounteeField
|
47
|
+
|
48
|
+
|
49
|
+
</h1>
|
50
|
+
|
51
|
+
<dl class="box">
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
<dt class="r1 last">Defined in:</dt>
|
61
|
+
<dd class="r1 last">lib/rumai/ixp/message.rb</dd>
|
62
|
+
|
63
|
+
</dl>
|
64
|
+
<div class="clear"></div>
|
65
|
+
|
66
|
+
<h2>Overview</h2><div class="docstring">
|
67
|
+
<div class="discussion">
|
68
|
+
<p>
|
69
|
+
Methods for a field whose length is counted by another field.
|
70
|
+
</p>
|
71
|
+
|
72
|
+
|
73
|
+
</div>
|
74
|
+
</div>
|
75
|
+
<div class="tags">
|
76
|
+
|
77
|
+
</div>
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
<h2>Instance Method Summary</h2>
|
82
|
+
|
83
|
+
<ul class="summary">
|
84
|
+
|
85
|
+
<li class="public ">
|
86
|
+
<span class="summary_signature">
|
87
|
+
|
88
|
+
<a href="#load_9p-instance_method" title="#load_9p (instance method)">- (Object) <strong>load_9p</strong>(stream, field_values) </a>
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
</span>
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
101
|
+
|
102
|
+
</li>
|
103
|
+
|
104
|
+
|
105
|
+
<li class="public ">
|
106
|
+
<span class="summary_signature">
|
107
|
+
|
108
|
+
<a href="#to_9p-instance_method" title="#to_9p (instance method)">- (Object) <strong>to_9p</strong>(field_values) </a>
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
</span>
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
121
|
+
|
122
|
+
</li>
|
123
|
+
|
124
|
+
|
125
|
+
</ul>
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
<div id="instance_method_details" class="method_details_list">
|
131
|
+
<h2>Instance Method Details</h2>
|
132
|
+
|
133
|
+
|
134
|
+
<div class="method_details first">
|
135
|
+
<p class="signature first" id="load_9p-instance_method">
|
136
|
+
|
137
|
+
- (<tt><a href="../../../../Object.html" title="Object (class)">Object</a></tt>) <strong>load_9p</strong>(stream, field_values)
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
</p><table class="source_code">
|
142
|
+
<tr>
|
143
|
+
<td>
|
144
|
+
<pre class="lines">
|
145
|
+
|
146
|
+
|
147
|
+
255
|
148
|
+
256
|
149
|
+
257
|
150
|
+
258
|
151
|
+
259
|
152
|
+
260
|
153
|
+
261
|
154
|
+
262
|
155
|
+
263
|
156
|
+
264</pre>
|
157
|
+
</td>
|
158
|
+
<td>
|
159
|
+
<pre class="code"><span class="info file"># File 'lib/rumai/ixp/message.rb', line 255</span>
|
160
|
+
|
161
|
+
<span class='kw'>def</span> <span class='id load_9p'>load_9p</span> <span class='id stream'>stream</span><span class='comma'>,</span> <span class='id field_values'>field_values</span>
|
162
|
+
<span class='id count'>count</span> <span class='op'>=</span> <span class='id field_values'>field_values</span><span class='lbracket'>[</span><span class='ivar'>@counter</span><span class='period'>.</span><span class='id name'>name</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id to_i'>to_i</span>
|
163
|
+
|
164
|
+
<span class='id field_values'>field_values</span><span class='lbracket'>[</span><span class='ivar'>@name</span><span class='rbracket'>]</span> <span class='op'>=</span>
|
165
|
+
<span class='kw'>if</span> <span class='ivar'>@format</span>
|
166
|
+
<span class='const'>Array</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='id count'>count</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='id value_from_9p'>value_from_9p</span> <span class='id stream'>stream</span> <span class='rbrace'>}</span>
|
167
|
+
<span class='kw'>else</span>
|
168
|
+
<span class='id stream'>stream</span><span class='period'>.</span><span class='id read'>read</span><span class='lparen'>(</span><span class='id count'>count</span><span class='rparen'>)</span> <span class='comment'># raw byte sequence
|
169
|
+
</span> <span class='kw'>end</span>
|
170
|
+
<span class='kw'>end</span></pre>
|
171
|
+
</td>
|
172
|
+
</tr>
|
173
|
+
</table>
|
174
|
+
</div>
|
175
|
+
|
176
|
+
<div class="method_details ">
|
177
|
+
<p class="signature " id="to_9p-instance_method">
|
178
|
+
|
179
|
+
- (<tt><a href="../../../../Object.html" title="Object (class)">Object</a></tt>) <strong>to_9p</strong>(field_values)
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
</p><table class="source_code">
|
184
|
+
<tr>
|
185
|
+
<td>
|
186
|
+
<pre class="lines">
|
187
|
+
|
188
|
+
|
189
|
+
245
|
190
|
+
246
|
191
|
+
247
|
192
|
+
248
|
193
|
+
249
|
194
|
+
250
|
195
|
+
251
|
196
|
+
252
|
197
|
+
253</pre>
|
198
|
+
</td>
|
199
|
+
<td>
|
200
|
+
<pre class="code"><span class="info file"># File 'lib/rumai/ixp/message.rb', line 245</span>
|
201
|
+
|
202
|
+
<span class='kw'>def</span> <span class='id to_9p'>to_9p</span> <span class='id field_values'>field_values</span>
|
203
|
+
<span class='id value'>value</span> <span class='op'>=</span> <span class='id field_values'>field_values</span><span class='lbracket'>[</span><span class='ivar'>@name</span><span class='rbracket'>]</span>
|
204
|
+
|
205
|
+
<span class='kw'>if</span> <span class='ivar'>@format</span>
|
206
|
+
<span class='id value'>value</span><span class='period'>.</span><span class='id map'>map</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id v'>v</span><span class='op'>|</span> <span class='id value_to_9p'>value_to_9p</span> <span class='id v'>v</span><span class='rbrace'>}</span><span class='period'>.</span><span class='id join'>join</span>
|
207
|
+
<span class='kw'>else</span>
|
208
|
+
<span class='id value'>value</span><span class='period'>.</span><span class='id to_s'>to_s</span> <span class='comment'># raw byte sequence
|
209
|
+
</span> <span class='kw'>end</span>
|
210
|
+
<span class='kw'>end</span></pre>
|
211
|
+
</td>
|
212
|
+
</tr>
|
213
|
+
</table>
|
214
|
+
</div>
|
215
|
+
|
216
|
+
</div>
|
217
|
+
|
218
|
+
</div>
|
219
|
+
|
220
|
+
<div id="footer">
|
221
|
+
Generated on Mon Mar 22 22:23:56 2010 by
|
222
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
|
223
|
+
0.5.4 (ruby-1.9.1).
|
224
|
+
</div>
|
225
|
+
|
226
|
+
</body>
|
227
|
+
</html>
|
@@ -0,0 +1,153 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta name="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>Module: Rumai::IXP::Struct::Field::CounterField</title>
|
7
|
+
<link rel="stylesheet" href="../../../../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="../../../../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
|
+
|
10
|
+
<script type="text/javascript" charset="utf-8">
|
11
|
+
relpath = '../../../..';
|
12
|
+
if (relpath != '') relpath += '/';
|
13
|
+
</script>
|
14
|
+
<script type="text/javascript" charset="utf-8" src="../../../../js/jquery.js"></script>
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../../../../js/app.js"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body>
|
19
|
+
<script type="text/javascript" charset="utf-8">
|
20
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
21
|
+
</script>
|
22
|
+
|
23
|
+
<div id="header">
|
24
|
+
<div id="menu">
|
25
|
+
|
26
|
+
<a href="../../../../_index.html">Index (C)</a> »
|
27
|
+
<span class='title'><a href="../../../../Rumai.html" title="Rumai (module)">Rumai</a></span> » <span class='title'><a href="../../../IXP.html" title="Rumai::IXP (module)">IXP</a></span> » <span class='title'><a href="../../Struct.html" title="Rumai::IXP::Struct (module)">Struct</a></span> » <span class='title'><a href="../Field.html" title="Rumai::IXP::Struct::Field (class)">Field</a></span>
|
28
|
+
»
|
29
|
+
<span class="title">CounterField</span>
|
30
|
+
|
31
|
+
|
32
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="search">
|
36
|
+
<a id="class_list_link" href="#">Class List</a>
|
37
|
+
<a id="method_list_link" href="#">Method List</a>
|
38
|
+
<a id ="file_list_link" href="#">File List</a>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<div class="clear"></div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
<iframe id="search_frame"></iframe>
|
45
|
+
|
46
|
+
<div id="content"><h1>Module: Rumai::IXP::Struct::Field::CounterField
|
47
|
+
|
48
|
+
|
49
|
+
</h1>
|
50
|
+
|
51
|
+
<dl class="box">
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
<dt class="r1 last">Defined in:</dt>
|
61
|
+
<dd class="r1 last">lib/rumai/ixp/message.rb</dd>
|
62
|
+
|
63
|
+
</dl>
|
64
|
+
<div class="clear"></div>
|
65
|
+
|
66
|
+
<h2>Overview</h2><div class="docstring">
|
67
|
+
<div class="discussion">
|
68
|
+
<p>
|
69
|
+
Methods for a field that counts the length of another field.
|
70
|
+
</p>
|
71
|
+
|
72
|
+
|
73
|
+
</div>
|
74
|
+
</div>
|
75
|
+
<div class="tags">
|
76
|
+
|
77
|
+
</div>
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
<h2>Instance Method Summary</h2>
|
82
|
+
|
83
|
+
<ul class="summary">
|
84
|
+
|
85
|
+
<li class="public ">
|
86
|
+
<span class="summary_signature">
|
87
|
+
|
88
|
+
<a href="#to_9p-instance_method" title="#to_9p (instance method)">- (Object) <strong>to_9p</strong>(field_values) </a>
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
</span>
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
101
|
+
|
102
|
+
</li>
|
103
|
+
|
104
|
+
|
105
|
+
</ul>
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<div id="instance_method_details" class="method_details_list">
|
111
|
+
<h2>Instance Method Details</h2>
|
112
|
+
|
113
|
+
|
114
|
+
<div class="method_details first">
|
115
|
+
<p class="signature first" id="to_9p-instance_method">
|
116
|
+
|
117
|
+
- (<tt><a href="../../../../Object.html" title="Object (class)">Object</a></tt>) <strong>to_9p</strong>(field_values)
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
</p><table class="source_code">
|
122
|
+
<tr>
|
123
|
+
<td>
|
124
|
+
<pre class="lines">
|
125
|
+
|
126
|
+
|
127
|
+
236
|
128
|
+
237
|
129
|
+
238</pre>
|
130
|
+
</td>
|
131
|
+
<td>
|
132
|
+
<pre class="code"><span class="info file"># File 'lib/rumai/ixp/message.rb', line 236</span>
|
133
|
+
|
134
|
+
<span class='kw'>def</span> <span class='id to_9p'>to_9p</span> <span class='id field_values'>field_values</span>
|
135
|
+
<span class='id value_to_9p'>value_to_9p</span> <span class='id field_values'>field_values</span><span class='lbracket'>[</span><span class='ivar'>@countee</span><span class='period'>.</span><span class='id name'>name</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id length'>length</span>
|
136
|
+
<span class='kw'>end</span></pre>
|
137
|
+
</td>
|
138
|
+
</tr>
|
139
|
+
</table>
|
140
|
+
</div>
|
141
|
+
|
142
|
+
</div>
|
143
|
+
|
144
|
+
</div>
|
145
|
+
|
146
|
+
<div id="footer">
|
147
|
+
Generated on Mon Mar 22 22:23:55 2010 by
|
148
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
|
149
|
+
0.5.4 (ruby-1.9.1).
|
150
|
+
</div>
|
151
|
+
|
152
|
+
</body>
|
153
|
+
</html>
|
@@ -0,0 +1,242 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta name="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>Class: Rumai::IXP::Struct::Integer8Field</title>
|
7
|
+
<link rel="stylesheet" href="../../../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="../../../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
|
+
|
10
|
+
<script type="text/javascript" charset="utf-8">
|
11
|
+
relpath = '../../..';
|
12
|
+
if (relpath != '') relpath += '/';
|
13
|
+
</script>
|
14
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body>
|
19
|
+
<script type="text/javascript" charset="utf-8">
|
20
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
21
|
+
</script>
|
22
|
+
|
23
|
+
<div id="header">
|
24
|
+
<div id="menu">
|
25
|
+
|
26
|
+
<a href="../../../_index.html">Index (I)</a> »
|
27
|
+
<span class='title'><a href="../../../Rumai.html" title="Rumai (module)">Rumai</a></span> » <span class='title'><a href="../../IXP.html" title="Rumai::IXP (module)">IXP</a></span> » <span class='title'><a href="../Struct.html" title="Rumai::IXP::Struct (module)">Struct</a></span>
|
28
|
+
»
|
29
|
+
<span class="title">Integer8Field</span>
|
30
|
+
|
31
|
+
|
32
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="search">
|
36
|
+
<a id="class_list_link" href="#">Class List</a>
|
37
|
+
<a id="method_list_link" href="#">Method List</a>
|
38
|
+
<a id ="file_list_link" href="#">File List</a>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<div class="clear"></div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
<iframe id="search_frame"></iframe>
|
45
|
+
|
46
|
+
<div id="content"><h1>Class: Rumai::IXP::Struct::Integer8Field
|
47
|
+
|
48
|
+
|
49
|
+
</h1>
|
50
|
+
|
51
|
+
<dl class="box">
|
52
|
+
|
53
|
+
<dt class="r1">Inherits:</dt>
|
54
|
+
<dd class="r1">
|
55
|
+
<span class="inheritName"><a href="Field.html" title="Rumai::IXP::Struct::Field (class)">Field</a></span>
|
56
|
+
|
57
|
+
<ul class="fullTree">
|
58
|
+
<li><a href="../../../Object.html" title="Object (class)">Object</a></li>
|
59
|
+
|
60
|
+
<li class="next"><a href="Field.html" title="Rumai::IXP::Struct::Field (class)">Field</a></li>
|
61
|
+
|
62
|
+
<li class="next">Rumai::IXP::Struct::Integer8Field</li>
|
63
|
+
|
64
|
+
</ul>
|
65
|
+
<a href="#" class="inheritanceTree">show all</a>
|
66
|
+
|
67
|
+
</dd>
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
<dt class="r2 last">Defined in:</dt>
|
78
|
+
<dd class="r2 last">lib/rumai/ixp/message.rb</dd>
|
79
|
+
|
80
|
+
</dl>
|
81
|
+
<div class="clear"></div>
|
82
|
+
|
83
|
+
<h2>Overview</h2><div class="docstring">
|
84
|
+
<div class="discussion">
|
85
|
+
<p>
|
86
|
+
A field whose value is a 8-byte integer.
|
87
|
+
</p>
|
88
|
+
|
89
|
+
|
90
|
+
</div>
|
91
|
+
</div>
|
92
|
+
<div class="tags">
|
93
|
+
|
94
|
+
</div>
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
<h2>Instance Method Summary</h2>
|
103
|
+
|
104
|
+
<ul class="summary">
|
105
|
+
|
106
|
+
<li class="public ">
|
107
|
+
<span class="summary_signature">
|
108
|
+
|
109
|
+
<a href="#value_from_9p-instance_method" title="#value_from_9p (instance method)">- (Object) <strong>value_from_9p</strong>(stream) </a>
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
</span>
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
122
|
+
|
123
|
+
</li>
|
124
|
+
|
125
|
+
|
126
|
+
<li class="public ">
|
127
|
+
<span class="summary_signature">
|
128
|
+
|
129
|
+
<a href="#value_to_9p-instance_method" title="#value_to_9p (instance method)">- (Object) <strong>value_to_9p</strong>(value) </a>
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
</span>
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
142
|
+
|
143
|
+
</li>
|
144
|
+
|
145
|
+
|
146
|
+
</ul>
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
<h3 class="inherited">Methods inherited from <a href="Field.html" title="Rumai::IXP::Struct::Field (class)">Field</a></h3>
|
158
|
+
<p class="inherited"><a href="Field.html#factory-class_method" title="Rumai::IXP::Struct::Field.factory (method)">factory</a>, <a href="Field.html#initialize-instance_method" title="Rumai::IXP::Struct::Field#initialize (method)">#initialize</a>, <a href="Field.html#load_9p-instance_method" title="Rumai::IXP::Struct::Field#load_9p (method)">#load_9p</a>, <a href="Field.html#to_9p-instance_method" title="Rumai::IXP::Struct::Field#to_9p (method)">#to_9p</a></p>
|
159
|
+
<div id="constructor_details" class="method_details_list">
|
160
|
+
<h2>Constructor Details</h2>
|
161
|
+
|
162
|
+
<p class="notice">This class inherits a constructor from <a href="Field.html#initialize-instance_method" title="Rumai::IXP::Struct::Field#initialize (method)">Rumai::IXP::Struct::Field</a></p>
|
163
|
+
|
164
|
+
</div>
|
165
|
+
|
166
|
+
|
167
|
+
<div id="instance_method_details" class="method_details_list">
|
168
|
+
<h2>Instance Method Details</h2>
|
169
|
+
|
170
|
+
|
171
|
+
<div class="method_details first">
|
172
|
+
<p class="signature first" id="value_from_9p-instance_method">
|
173
|
+
|
174
|
+
- (<tt><a href="../../../Object.html" title="Object (class)">Object</a></tt>) <strong>value_from_9p</strong>(stream)
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
</p><table class="source_code">
|
179
|
+
<tr>
|
180
|
+
<td>
|
181
|
+
<pre class="lines">
|
182
|
+
|
183
|
+
|
184
|
+
300
|
185
|
+
301
|
186
|
+
302</pre>
|
187
|
+
</td>
|
188
|
+
<td>
|
189
|
+
<pre class="code"><span class="info file"># File 'lib/rumai/ixp/message.rb', line 300</span>
|
190
|
+
|
191
|
+
<span class='kw'>def</span> <span class='id value_from_9p'>value_from_9p</span> <span class='id stream'>stream</span>
|
192
|
+
<span class='id stream'>stream</span><span class='period'>.</span><span class='id read_9p'>read_9p</span><span class='lparen'>(</span><span class='int'>4</span><span class='rparen'>)</span> <span class='op'>|</span> <span class='lparen'>(</span><span class='id stream'>stream</span><span class='period'>.</span><span class='id read_9p'>read_9p</span><span class='lparen'>(</span><span class='int'>4</span><span class='rparen'>)</span> <span class='op'><<</span> <span class='const'>BYTE4_BITS</span><span class='rparen'>)</span>
|
193
|
+
<span class='kw'>end</span></pre>
|
194
|
+
</td>
|
195
|
+
</tr>
|
196
|
+
</table>
|
197
|
+
</div>
|
198
|
+
|
199
|
+
<div class="method_details ">
|
200
|
+
<p class="signature " id="value_to_9p-instance_method">
|
201
|
+
|
202
|
+
- (<tt><a href="../../../Object.html" title="Object (class)">Object</a></tt>) <strong>value_to_9p</strong>(value)
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
</p><table class="source_code">
|
207
|
+
<tr>
|
208
|
+
<td>
|
209
|
+
<pre class="lines">
|
210
|
+
|
211
|
+
|
212
|
+
294
|
213
|
+
295
|
214
|
+
296
|
215
|
+
297
|
216
|
+
298</pre>
|
217
|
+
</td>
|
218
|
+
<td>
|
219
|
+
<pre class="code"><span class="info file"># File 'lib/rumai/ixp/message.rb', line 294</span>
|
220
|
+
|
221
|
+
<span class='kw'>def</span> <span class='id value_to_9p'>value_to_9p</span> <span class='id value'>value</span>
|
222
|
+
<span class='id v'>v</span> <span class='op'>=</span> <span class='id value'>value</span><span class='period'>.</span><span class='id to_i'>to_i</span>
|
223
|
+
<span class='lparen'>(</span><span class='const'>BYTE4_MASK</span> <span class='op'>&</span> <span class='id v'>v</span><span class='rparen'>)</span><span class='period'>.</span><span class='id to_9p'>to_9p</span><span class='lparen'>(</span><span class='int'>4</span><span class='rparen'>)</span> <span class='op'><<</span> <span class='comment'># lower bytes
|
224
|
+
</span> <span class='lparen'>(</span><span class='const'>BYTE4_MASK</span> <span class='op'>&</span> <span class='lparen'>(</span><span class='id v'>v</span> <span class='op'>>></span> <span class='const'>BYTE4_BITS</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id to_9p'>to_9p</span><span class='lparen'>(</span><span class='int'>4</span><span class='rparen'>)</span> <span class='comment'># higher bytes
|
225
|
+
</span><span class='kw'>end</span></pre>
|
226
|
+
</td>
|
227
|
+
</tr>
|
228
|
+
</table>
|
229
|
+
</div>
|
230
|
+
|
231
|
+
</div>
|
232
|
+
|
233
|
+
</div>
|
234
|
+
|
235
|
+
<div id="footer">
|
236
|
+
Generated on Mon Mar 22 22:23:56 2010 by
|
237
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
|
238
|
+
0.5.4 (ruby-1.9.1).
|
239
|
+
</div>
|
240
|
+
|
241
|
+
</body>
|
242
|
+
</html>
|