rumai 1.0.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/doc/api/classes/Integer.src/M000002.html +1 -1
- data/doc/api/classes/Rumai.html +1 -1
- data/doc/api/classes/Rumai.src/M000015.html +1 -1
- data/doc/api/classes/Rumai.src/M000016.html +1 -1
- data/doc/api/classes/Rumai.src/M000017.html +1 -1
- data/doc/api/classes/Rumai.src/M000018.html +1 -1
- data/doc/api/classes/Rumai.src/M000019.html +1 -1
- data/doc/api/classes/Rumai.src/M000020.html +1 -1
- data/doc/api/classes/Rumai.src/M000021.html +1 -1
- data/doc/api/classes/Rumai.src/M000022.html +1 -1
- data/doc/api/classes/Rumai.src/M000023.html +1 -1
- data/doc/api/classes/Rumai.src/M000024.html +1 -1
- data/doc/api/classes/Rumai.src/M000025.html +1 -1
- data/doc/api/classes/Rumai.src/M000026.html +1 -1
- data/doc/api/classes/Rumai/Area.html +87 -87
- data/doc/api/classes/Rumai/Area.src/{M000091.html → M000079.html} +5 -8
- data/doc/api/classes/Rumai/Area.src/M000080.html +4 -5
- data/doc/api/classes/Rumai/Area.src/M000081.html +3 -3
- data/doc/api/classes/Rumai/Area.src/M000082.html +5 -5
- data/doc/api/classes/Rumai/Area.src/M000083.html +3 -3
- data/doc/api/classes/Rumai/Area.src/M000084.html +3 -3
- data/doc/api/classes/Rumai/Area.src/M000085.html +4 -4
- data/doc/api/classes/Rumai/Area.src/M000086.html +4 -4
- data/doc/api/classes/Rumai/Area.src/M000087.html +4 -4
- data/doc/api/classes/Rumai/Area.src/M000088.html +4 -4
- data/doc/api/classes/Rumai/Area.src/M000089.html +4 -4
- data/doc/api/classes/Rumai/Area.src/M000090.html +7 -3
- data/doc/api/classes/Rumai/Area.src/M000092.html +23 -0
- data/doc/api/classes/Rumai/Area.src/M000093.html +8 -3
- data/doc/api/classes/Rumai/Area.src/M000094.html +4 -14
- data/doc/api/classes/Rumai/Area.src/M000095.html +17 -4
- data/doc/api/classes/Rumai/Chain.html +18 -18
- data/doc/api/classes/Rumai/Chain.src/{M000079.html → M000076.html} +4 -4
- data/doc/api/classes/Rumai/Chain.src/M000077.html +4 -4
- data/doc/api/classes/Rumai/Chain.src/M000078.html +4 -4
- data/doc/api/classes/Rumai/Client.html +48 -30
- data/doc/api/classes/Rumai/Client.src/M000113.html +18 -0
- data/doc/api/classes/Rumai/Client.src/M000114.html +4 -4
- data/doc/api/classes/Rumai/Client.src/M000115.html +5 -5
- data/doc/api/classes/Rumai/Client.src/M000116.html +26 -5
- data/doc/api/classes/Rumai/Client.src/M000117.html +5 -25
- data/doc/api/classes/Rumai/Client.src/M000118.html +4 -13
- data/doc/api/classes/Rumai/Client.src/M000119.html +4 -5
- data/doc/api/classes/Rumai/Client.src/M000120.html +1 -1
- data/doc/api/classes/Rumai/Client.src/M000121.html +1 -1
- data/doc/api/classes/Rumai/Client.src/M000122.html +1 -1
- data/doc/api/classes/Rumai/Client.src/M000123.html +1 -1
- data/doc/api/classes/Rumai/Client.src/M000124.html +1 -1
- data/doc/api/classes/Rumai/Client.src/M000125.html +1 -1
- data/doc/api/classes/Rumai/Client.src/M000126.html +1 -1
- data/doc/api/classes/Rumai/Client.src/M000127.html +1 -1
- data/doc/api/classes/Rumai/Client.src/M000128.html +1 -1
- data/doc/api/classes/Rumai/Client.src/M000129.html +1 -1
- data/doc/api/classes/Rumai/Client.src/M000130.html +1 -1
- data/doc/api/classes/Rumai/ClientContainer.src/M000027.html +1 -1
- data/doc/api/classes/Rumai/ClientContainer.src/M000028.html +1 -1
- data/doc/api/classes/Rumai/ClientContainer.src/M000029.html +1 -1
- data/doc/api/classes/Rumai/IXP/Agent.html +77 -77
- data/doc/api/classes/Rumai/IXP/Agent.src/M000044.html +53 -0
- data/doc/api/classes/Rumai/IXP/Agent.src/M000045.html +36 -0
- data/doc/api/classes/Rumai/IXP/Agent.src/M000046.html +20 -28
- data/doc/api/classes/Rumai/IXP/Agent.src/M000047.html +5 -29
- data/doc/api/classes/Rumai/IXP/Agent.src/M000048.html +7 -24
- data/doc/api/classes/Rumai/IXP/Agent.src/M000049.html +5 -5
- data/doc/api/classes/Rumai/IXP/Agent.src/M000050.html +18 -7
- data/doc/api/classes/Rumai/IXP/Agent.src/M000051.html +5 -6
- data/doc/api/classes/Rumai/IXP/Agent.src/M000052.html +4 -19
- data/doc/api/classes/Rumai/IXP/Agent.src/M000053.html +7 -5
- data/doc/api/classes/Rumai/IXP/Agent.src/M000054.html +6 -4
- data/doc/api/classes/Rumai/IXP/Agent.src/M000055.html +6 -7
- data/doc/api/classes/Rumai/IXP/Agent.src/M000056.html +8 -6
- data/doc/api/classes/Rumai/IXP/Agent.src/M000057.html +9 -6
- data/doc/api/classes/Rumai/IXP/Agent.src/M000058.html +5 -8
- data/doc/api/classes/Rumai/IXP/Agent/FidStream.html +93 -35
- data/doc/api/classes/Rumai/IXP/Agent/FidStream.src/M000060.html +23 -0
- data/doc/api/classes/Rumai/IXP/{Struct/Field.src/M000040.html → Agent/FidStream.src/M000061.html} +5 -4
- data/doc/api/classes/Rumai/IXP/Agent/FidStream.src/M000062.html +8 -8
- data/doc/api/classes/Rumai/IXP/Agent/FidStream.src/M000063.html +4 -7
- data/doc/api/classes/Rumai/IXP/Agent/FidStream.src/M000064.html +12 -9
- data/doc/api/classes/Rumai/IXP/Agent/FidStream.src/M000065.html +21 -11
- data/doc/api/classes/Rumai/IXP/Agent/MODES.html +5 -5
- data/doc/api/classes/Rumai/IXP/Agent/MODES.src/{M000061.html → M000059.html} +0 -0
- data/doc/api/classes/Rumai/IXP/Agent/RangedPool.html +16 -16
- data/doc/api/classes/Rumai/IXP/Agent/RangedPool.src/M000067.html +22 -0
- data/doc/api/classes/Rumai/IXP/Agent/RangedPool.src/M000068.html +21 -8
- data/doc/api/classes/Rumai/IXP/Agent/RangedPool.src/M000069.html +4 -18
- data/doc/api/classes/Rumai/IXP/Fcall.html +21 -21
- data/doc/api/classes/Rumai/IXP/Fcall.src/M000070.html +20 -0
- data/doc/api/classes/Rumai/IXP/Fcall.src/M000071.html +11 -6
- data/doc/api/classes/Rumai/IXP/Fcall.src/M000072.html +4 -11
- data/doc/api/classes/Rumai/IXP/Fcall.src/M000073.html +3 -3
- data/doc/api/classes/Rumai/IXP/Stat.html +5 -5
- data/doc/api/classes/Rumai/IXP/Stat.src/{M000076.html → M000075.html} +1 -1
- data/doc/api/classes/Rumai/IXP/Stream.html +5 -5
- data/doc/api/classes/Rumai/IXP/Stream.src/{M000045.html → M000043.html} +1 -2
- data/doc/api/classes/Rumai/IXP/Struct.html +11 -47
- data/doc/api/classes/Rumai/IXP/Struct.src/M000030.html +1 -1
- data/doc/api/classes/Rumai/IXP/Struct.src/M000031.html +4 -4
- data/doc/api/classes/Rumai/IXP/Struct.src/M000032.html +5 -3
- data/doc/api/classes/Rumai/IXP/Struct.src/M000033.html +43 -4
- data/doc/api/classes/Rumai/IXP/Struct/Field.html +34 -42
- data/doc/api/classes/Rumai/IXP/Struct/Field.src/M000034.html +21 -0
- data/doc/api/classes/Rumai/IXP/Struct/Field.src/{M000041.html → M000035.html} +7 -4
- data/doc/api/classes/Rumai/IXP/Struct/Field.src/M000036.html +6 -7
- data/doc/api/classes/Rumai/IXP/Struct/Field.src/M000037.html +13 -5
- data/doc/api/classes/Rumai/IXP/Struct/Field.src/M000038.html +4 -6
- data/doc/api/classes/Rumai/IXP/Struct/Field.src/M000039.html +4 -15
- data/doc/api/classes/Rumai/IXP/Struct/Field/CounteeField.html +12 -12
- data/doc/api/classes/Rumai/IXP/Struct/Field/CounteeField.src/{M000043.html → M000041.html} +3 -3
- data/doc/api/classes/Rumai/IXP/Struct/Field/CounteeField.src/{M000044.html → M000042.html} +4 -4
- data/doc/api/classes/Rumai/IXP/Struct/Field/CounterField.html +6 -6
- data/doc/api/classes/Rumai/IXP/Struct/Field/CounterField.src/{M000042.html → M000040.html} +3 -3
- data/doc/api/classes/Rumai/IXP/Terror.html +5 -5
- data/doc/api/classes/Rumai/IXP/Terror.src/{M000075.html → M000074.html} +1 -1
- data/doc/api/classes/Rumai/Node.html +88 -88
- data/doc/api/classes/Rumai/Node.src/M000096.html +18 -0
- data/doc/api/classes/Rumai/Node.src/M000097.html +4 -4
- data/doc/api/classes/Rumai/Node.src/M000098.html +8 -4
- data/doc/api/classes/Rumai/Node.src/M000099.html +4 -8
- data/doc/api/classes/Rumai/Node.src/M000100.html +4 -4
- data/doc/api/classes/Rumai/Node.src/M000101.html +4 -4
- data/doc/api/classes/Rumai/Node.src/M000102.html +4 -4
- data/doc/api/classes/Rumai/Node.src/M000103.html +8 -4
- data/doc/api/classes/Rumai/Node.src/M000104.html +4 -8
- data/doc/api/classes/Rumai/Node.src/M000105.html +4 -4
- data/doc/api/classes/Rumai/Node.src/M000106.html +4 -4
- data/doc/api/classes/Rumai/Node.src/M000107.html +4 -4
- data/doc/api/classes/Rumai/Node.src/M000108.html +4 -4
- data/doc/api/classes/Rumai/Node.src/M000109.html +4 -4
- data/doc/api/classes/Rumai/Node.src/M000110.html +5 -5
- data/doc/api/classes/Rumai/Node.src/M000111.html +7 -5
- data/doc/api/classes/Rumai/Node.src/M000112.html +12 -5
- data/doc/api/classes/Rumai/View.html +2 -2
- data/doc/api/classes/Rumai/View.src/M000131.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000132.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000133.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000134.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000135.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000136.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000137.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000138.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000139.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000140.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000141.html +3 -3
- data/doc/api/classes/Rumai/View.src/M000142.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000143.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000144.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000145.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000146.html +1 -1
- data/doc/api/classes/String.src/M000005.html +1 -1
- data/doc/api/classes/String.src/M000006.html +2 -3
- data/doc/api/classes/Time.src/M000003.html +1 -1
- data/doc/api/classes/Time.src/M000004.html +1 -1
- data/doc/api/created.rid +1 -1
- data/doc/api/files/lib/rumai/fs_rb.html +1 -1
- data/doc/api/files/lib/rumai/ixp/message_rb.html +1 -1
- data/doc/api/files/lib/rumai/ixp/transport_rb.html +1 -1
- data/doc/api/files/lib/rumai/nfo_rb.html +1 -1
- data/doc/api/files/lib/rumai/wm_rb.html +1 -1
- data/doc/api/fr_method_index.html +91 -91
- data/doc/guide.erb +2 -2
- data/doc/guide.html +49 -41
- data/lib/rumai/fs.rb +3 -3
- data/lib/rumai/ixp/message.rb +19 -36
- data/lib/rumai/ixp/transport.rb +98 -85
- data/lib/rumai/nfo.rb +2 -2
- data/lib/rumai/wm.rb +15 -25
- metadata +24 -25
- data/doc/api/classes/Rumai/Area.src/M000096.html +0 -31
- data/doc/api/classes/Rumai/IXP/Agent.src/M000059.html +0 -23
- data/doc/api/classes/Rumai/IXP/Agent.src/M000060.html +0 -19
- data/doc/api/classes/Rumai/IXP/Agent/FidStream.src/M000066.html +0 -36
- data/doc/api/classes/Rumai/IXP/Agent/RangedPool.src/M000070.html +0 -20
- data/doc/api/classes/Rumai/IXP/Fcall.src/M000074.html +0 -18
- data/doc/api/classes/Rumai/IXP/Struct.src/M000034.html +0 -20
- data/doc/api/classes/Rumai/IXP/Struct.src/M000035.html +0 -57
- data/doc/api/classes/Rumai/Node.src/M000113.html +0 -27
- data/doc/index.html +0 -2035
@@ -0,0 +1,20 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>to_9p (Rumai::IXP::Fcall)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 329</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_9p</span>
|
15
|
+
<span class="ruby-identifier">data</span> = <span class="ruby-identifier">type</span>.<span class="ruby-identifier">to_9p</span>(<span class="ruby-value">1</span>) <span class="ruby-operator"><<</span> <span class="ruby-keyword kw">super</span>
|
16
|
+
<span class="ruby-identifier">size</span> = (<span class="ruby-identifier">data</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">+</span> <span class="ruby-value">4</span>).<span class="ruby-identifier">to_9p</span>(<span class="ruby-value">4</span>)
|
17
|
+
<span class="ruby-identifier">size</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">data</span>
|
18
|
+
<span class="ruby-keyword kw">end</span></pre>
|
19
|
+
</body>
|
20
|
+
</html>
|
@@ -5,16 +5,21 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>from_9p (Rumai::IXP::Fcall)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
15
|
-
<span class="ruby-identifier">
|
16
|
-
<span class="ruby-identifier">
|
17
|
-
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 341</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">from_9p</span> <span class="ruby-identifier">aStream</span>
|
15
|
+
<span class="ruby-identifier">size</span> = <span class="ruby-identifier">aStream</span>.<span class="ruby-identifier">read_9p</span>(<span class="ruby-value">4</span>)
|
16
|
+
<span class="ruby-identifier">type</span> = <span class="ruby-identifier">aStream</span>.<span class="ruby-identifier">read_9p</span>(<span class="ruby-value">1</span>)
|
17
|
+
|
18
|
+
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">fcall</span> = <span class="ruby-constant">TYPE_TO_CLASS</span>[<span class="ruby-identifier">type</span>]
|
19
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">Error</span>, <span class="ruby-node">"illegal fcall type: #{type}"</span>
|
20
|
+
<span class="ruby-keyword kw">end</span>
|
21
|
+
|
22
|
+
<span class="ruby-identifier">__from_9p__</span> <span class="ruby-identifier">aStream</span>, <span class="ruby-identifier">fcall</span>
|
18
23
|
<span class="ruby-keyword kw">end</span></pre>
|
19
24
|
</body>
|
20
25
|
</html>
|
@@ -5,21 +5,14 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>type (Rumai::IXP::Fcall)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">
|
15
|
-
<span class="ruby-
|
16
|
-
<span class="ruby-identifier">type</span> = <span class="ruby-identifier">aStream</span>.<span class="ruby-identifier">read_9p</span>(<span class="ruby-value">1</span>)
|
17
|
-
|
18
|
-
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">fcall</span> = <span class="ruby-constant">TYPE_TO_CLASS</span>[<span class="ruby-identifier">type</span>]
|
19
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-constant">Error</span>, <span class="ruby-node">"illegal fcall type: #{type}"</span>
|
20
|
-
<span class="ruby-keyword kw">end</span>
|
21
|
-
|
22
|
-
<span class="ruby-identifier">__from_9p__</span> <span class="ruby-identifier">aStream</span>, <span class="ruby-identifier">fcall</span>
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 572</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">type</span>
|
15
|
+
<span class="ruby-constant">CLASS_TO_TYPE</span>[<span class="ruby-keyword kw">self</span>]
|
23
16
|
<span class="ruby-keyword kw">end</span></pre>
|
24
17
|
</body>
|
25
18
|
</html>
|
@@ -10,9 +10,9 @@
|
|
10
10
|
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-
|
15
|
-
<span class="ruby-
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 577</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">type</span>
|
15
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">type</span>
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -98,7 +98,7 @@ href="http://cm.bell-labs.com/magic/man2html/5/stat">cm.bell-labs.com/magic/man2
|
|
98
98
|
<h3 class="section-bar">Methods</h3>
|
99
99
|
|
100
100
|
<div class="name-list">
|
101
|
-
<a href="#
|
101
|
+
<a href="#M000075">directory?</a>
|
102
102
|
</div>
|
103
103
|
</div>
|
104
104
|
|
@@ -216,12 +216,12 @@ href="http://swtch.com/usr/local/plan9/include/libc.h">swtch.com/usr/local/plan9
|
|
216
216
|
<div id="methods">
|
217
217
|
<h3 class="section-bar">Public Instance methods</h3>
|
218
218
|
|
219
|
-
<div id="method-
|
220
|
-
<a name="
|
219
|
+
<div id="method-M000075" class="method-detail">
|
220
|
+
<a name="M000075"></a>
|
221
221
|
|
222
222
|
<div class="method-heading">
|
223
|
-
<a href="Stat.src/
|
224
|
-
onclick="popupCode('Stat.src/
|
223
|
+
<a href="Stat.src/M000075.html" target="Code" class="method-signature"
|
224
|
+
onclick="popupCode('Stat.src/M000075.html');return false;">
|
225
225
|
<span class="method-name">directory?</span><span class="method-args">()</span>
|
226
226
|
</a>
|
227
227
|
</div>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 308</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">directory?</span>
|
15
15
|
<span class="ruby-identifier">mode</span> <span class="ruby-operator">&</span> <span class="ruby-constant">DMDIR</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -86,7 +86,7 @@ A 9P2000 byte stream.
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
89
|
+
<a href="#M000043">read_9p</a>
|
90
90
|
</div>
|
91
91
|
</div>
|
92
92
|
|
@@ -126,12 +126,12 @@ uchar, ushort, uint32 (all of them little-endian)
|
|
126
126
|
<div id="methods">
|
127
127
|
<h3 class="section-bar">Public Instance methods</h3>
|
128
128
|
|
129
|
-
<div id="method-
|
130
|
-
<a name="
|
129
|
+
<div id="method-M000043" class="method-detail">
|
130
|
+
<a name="M000043"></a>
|
131
131
|
|
132
132
|
<div class="method-heading">
|
133
|
-
<a href="Stream.src/
|
134
|
-
onclick="popupCode('Stream.src/
|
133
|
+
<a href="Stream.src/M000043.html" target="Code" class="method-signature"
|
134
|
+
onclick="popupCode('Stream.src/M000043.html');return false;">
|
135
135
|
<span class="method-name">read_9p</span><span class="method-args">(aNumBytes)</span>
|
136
136
|
</a>
|
137
137
|
</div>
|
@@ -12,8 +12,7 @@
|
|
12
12
|
<body class="standalone-code">
|
13
13
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 31</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">read_9p</span> <span class="ruby-identifier">aNumBytes</span>
|
15
|
-
<span class="ruby-identifier">
|
16
|
-
<span class="ruby-identifier">read</span>(<span class="ruby-identifier">aNumBytes</span>).<span class="ruby-identifier">unpack</span>(<span class="ruby-identifier">fmt</span>)[<span class="ruby-value">0</span>]
|
15
|
+
<span class="ruby-identifier">read</span>(<span class="ruby-identifier">aNumBytes</span>).<span class="ruby-identifier">unpack</span>(<span class="ruby-constant">PACKING_FLAGS</span>[<span class="ruby-identifier">aNumBytes</span>])[<span class="ruby-value">0</span>]
|
17
16
|
<span class="ruby-keyword kw">end</span></pre>
|
18
17
|
</body>
|
19
18
|
</html>
|
@@ -86,12 +86,10 @@ A serializable 9P2000 data structure.
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#M000032">
|
91
|
-
<a href="#M000035">included</a>
|
92
|
-
<a href="#M000034">load_9p</a>
|
89
|
+
<a href="#M000033">included</a>
|
90
|
+
<a href="#M000032">load_9p</a>
|
93
91
|
<a href="#M000030">new</a>
|
94
|
-
<a href="#
|
92
|
+
<a href="#M000031">to_9p</a>
|
95
93
|
</div>
|
96
94
|
</div>
|
97
95
|
|
@@ -132,12 +130,12 @@ A serializable 9P2000 data structure.
|
|
132
130
|
<div id="methods">
|
133
131
|
<h3 class="section-bar">Public Class methods</h3>
|
134
132
|
|
135
|
-
<div id="method-
|
136
|
-
<a name="
|
133
|
+
<div id="method-M000033" class="method-detail">
|
134
|
+
<a name="M000033"></a>
|
137
135
|
|
138
136
|
<div class="method-heading">
|
139
|
-
<a href="Struct.src/
|
140
|
-
onclick="popupCode('Struct.src/
|
137
|
+
<a href="Struct.src/M000033.html" target="Code" class="method-signature"
|
138
|
+
onclick="popupCode('Struct.src/M000033.html');return false;">
|
141
139
|
<span class="method-name">included</span><span class="method-args">(aTarget)</span>
|
142
140
|
</a>
|
143
141
|
</div>
|
@@ -174,46 +172,12 @@ Allows field values to be initialized via the constructor.
|
|
174
172
|
|
175
173
|
<h3 class="section-bar">Public Instance methods</h3>
|
176
174
|
|
177
|
-
<div id="method-M000031" class="method-detail">
|
178
|
-
<a name="M000031"></a>
|
179
|
-
|
180
|
-
<div class="method-heading">
|
181
|
-
<a href="Struct.src/M000031.html" target="Code" class="method-signature"
|
182
|
-
onclick="popupCode('Struct.src/M000031.html');return false;">
|
183
|
-
<span class="method-name">[]</span><span class="method-args">(aField)</span>
|
184
|
-
</a>
|
185
|
-
</div>
|
186
|
-
|
187
|
-
<div class="method-description">
|
188
|
-
<p>
|
189
|
-
Returns the value of the given field inside this structure.
|
190
|
-
</p>
|
191
|
-
</div>
|
192
|
-
</div>
|
193
|
-
|
194
175
|
<div id="method-M000032" class="method-detail">
|
195
176
|
<a name="M000032"></a>
|
196
177
|
|
197
178
|
<div class="method-heading">
|
198
179
|
<a href="Struct.src/M000032.html" target="Code" class="method-signature"
|
199
180
|
onclick="popupCode('Struct.src/M000032.html');return false;">
|
200
|
-
<span class="method-name">[]=</span><span class="method-args">(aField, aValue)</span>
|
201
|
-
</a>
|
202
|
-
</div>
|
203
|
-
|
204
|
-
<div class="method-description">
|
205
|
-
<p>
|
206
|
-
Sets the value of the given field inside this structure.
|
207
|
-
</p>
|
208
|
-
</div>
|
209
|
-
</div>
|
210
|
-
|
211
|
-
<div id="method-M000034" class="method-detail">
|
212
|
-
<a name="M000034"></a>
|
213
|
-
|
214
|
-
<div class="method-heading">
|
215
|
-
<a href="Struct.src/M000034.html" target="Code" class="method-signature"
|
216
|
-
onclick="popupCode('Struct.src/M000034.html');return false;">
|
217
181
|
<span class="method-name">load_9p</span><span class="method-args">(aStream)</span>
|
218
182
|
</a>
|
219
183
|
</div>
|
@@ -225,12 +189,12 @@ Populates this object with information from the given 9P2000 byte stream.
|
|
225
189
|
</div>
|
226
190
|
</div>
|
227
191
|
|
228
|
-
<div id="method-
|
229
|
-
<a name="
|
192
|
+
<div id="method-M000031" class="method-detail">
|
193
|
+
<a name="M000031"></a>
|
230
194
|
|
231
195
|
<div class="method-heading">
|
232
|
-
<a href="Struct.src/
|
233
|
-
onclick="popupCode('Struct.src/
|
196
|
+
<a href="Struct.src/M000031.html" target="Code" class="method-signature"
|
197
|
+
onclick="popupCode('Struct.src/M000031.html');return false;">
|
234
198
|
<span class="method-name">to_9p</span><span class="method-args">()</span>
|
235
199
|
</a>
|
236
200
|
</div>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 46</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">aFieldValues</span> = {}
|
15
15
|
<span class="ruby-ivar">@fields</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">fields</span>
|
16
16
|
<span class="ruby-ivar">@values</span> = <span class="ruby-identifier">aFieldValues</span>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>to_9p (Rumai::IXP::Struct)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-
|
15
|
-
<span class="ruby-ivar">@
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 52</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_9p</span>
|
15
|
+
<span class="ruby-ivar">@fields</span>.<span class="ruby-identifier">inject</span>(<span class="ruby-value str">''</span>) {<span class="ruby-operator">|</span><span class="ruby-identifier">s</span>,<span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">s</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">to_9p</span>(<span class="ruby-ivar">@values</span>) }
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -5,14 +5,16 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>load_9p (Rumai::IXP::Struct)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
13
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 58</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-
|
15
|
-
<span class="ruby-ivar">@
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load_9p</span> <span class="ruby-identifier">aStream</span>
|
15
|
+
<span class="ruby-ivar">@fields</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
|
16
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">load_9p</span> <span class="ruby-identifier">aStream</span>, <span class="ruby-ivar">@values</span>
|
17
|
+
<span class="ruby-keyword kw">end</span>
|
16
18
|
<span class="ruby-keyword kw">end</span></pre>
|
17
19
|
</body>
|
18
20
|
</html>
|
@@ -5,14 +5,53 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>included (Rumai::IXP::Struct)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
15
|
-
<span class="ruby-
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 66</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">included</span> <span class="ruby-identifier">aTarget</span>
|
15
|
+
<span class="ruby-keyword kw">class</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">aTarget</span>
|
16
|
+
<span class="ruby-comment cmt"># Returns a list of fields which compose this Struct.</span>
|
17
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fields</span>
|
18
|
+
<span class="ruby-ivar">@fields</span> <span class="ruby-operator">||=</span>
|
19
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">superclass</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:fields</span>
|
20
|
+
<span class="ruby-identifier">superclass</span>.<span class="ruby-identifier">fields</span>.<span class="ruby-identifier">dup</span>
|
21
|
+
<span class="ruby-keyword kw">else</span>
|
22
|
+
[]
|
23
|
+
<span class="ruby-keyword kw">end</span>
|
24
|
+
<span class="ruby-keyword kw">end</span>
|
25
|
+
|
26
|
+
<span class="ruby-comment cmt"># Defines a new field in this Struct.</span>
|
27
|
+
<span class="ruby-comment cmt"># aArgs:: arguments for Field.new()</span>
|
28
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">field</span> <span class="ruby-identifier">aName</span>, <span class="ruby-identifier">aFormat</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">aArgs</span>
|
29
|
+
<span class="ruby-identifier">c</span> = <span class="ruby-constant">Field</span>.<span class="ruby-identifier">factory</span>(<span class="ruby-identifier">aFormat</span>)
|
30
|
+
<span class="ruby-identifier">f</span> = <span class="ruby-identifier">c</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">aName</span>.<span class="ruby-identifier">to_sym</span>, <span class="ruby-identifier">aFormat</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">aArgs</span>)
|
31
|
+
<span class="ruby-identifier">fields</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">f</span> <span class="ruby-comment cmt"># register field as being part of this structure</span>
|
32
|
+
|
33
|
+
<span class="ruby-comment cmt"># provide accessor methods to field values</span>
|
34
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class_eval</span> <span class="ruby-node">%{
|
35
|
+
def #{f.name}
|
36
|
+
@values[#{f.name.inspect}]
|
37
|
+
end
|
38
|
+
|
39
|
+
def #{f.name}= aValue
|
40
|
+
@values[#{f.name.inspect}] = aValue
|
41
|
+
end
|
42
|
+
}</span>
|
43
|
+
|
44
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">f</span>
|
45
|
+
<span class="ruby-keyword kw">end</span>
|
46
|
+
|
47
|
+
<span class="ruby-comment cmt"># Creates a new instance of this class from the</span>
|
48
|
+
<span class="ruby-comment cmt"># given 9P2000 byte stream and returns the instance.</span>
|
49
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">from_9p</span> <span class="ruby-identifier">aStream</span>, <span class="ruby-identifier">aMsgClass</span> = <span class="ruby-keyword kw">self</span>
|
50
|
+
<span class="ruby-identifier">msg</span> = <span class="ruby-identifier">aMsgClass</span>.<span class="ruby-identifier">new</span>
|
51
|
+
<span class="ruby-identifier">msg</span>.<span class="ruby-identifier">load_9p</span>(<span class="ruby-identifier">aStream</span>)
|
52
|
+
<span class="ruby-identifier">msg</span>
|
53
|
+
<span class="ruby-keyword kw">end</span>
|
54
|
+
<span class="ruby-keyword kw">end</span>
|
16
55
|
<span class="ruby-keyword kw">end</span></pre>
|
17
56
|
</body>
|
18
57
|
</html>
|
@@ -82,11 +82,9 @@
|
|
82
82
|
|
83
83
|
<div id="description">
|
84
84
|
<p>
|
85
|
-
A field inside a <a href="../Struct.html">Struct</a>.
|
85
|
+
A field inside a <a href="../Struct.html">Struct</a>. A field‘s value
|
86
|
+
is considered to be:
|
86
87
|
</p>
|
87
|
-
<ul>
|
88
|
-
<li>A field‘s value is considered to be:
|
89
|
-
|
90
88
|
<ul>
|
91
89
|
<li>array of format when <tt>counter && format.is_a? Class</tt>
|
92
90
|
|
@@ -95,12 +93,6 @@ A field inside a <a href="../Struct.html">Struct</a>.
|
|
95
93
|
|
96
94
|
</li>
|
97
95
|
</ul>
|
98
|
-
</li>
|
99
|
-
</ul>
|
100
|
-
<p>
|
101
|
-
<a href="Field.html">Field</a> values are stored as instance variables
|
102
|
-
inside a structure.
|
103
|
-
</p>
|
104
96
|
|
105
97
|
</div>
|
106
98
|
|
@@ -111,12 +103,12 @@ inside a structure.
|
|
111
103
|
<h3 class="section-bar">Methods</h3>
|
112
104
|
|
113
105
|
<div class="name-list">
|
114
|
-
<a href="#
|
115
|
-
<a href="#
|
116
|
-
<a href="#
|
117
|
-
<a href="#
|
118
|
-
<a href="#
|
119
|
-
<a href="#
|
106
|
+
<a href="#M000036">countee=</a>
|
107
|
+
<a href="#M000035">counter=</a>
|
108
|
+
<a href="#M000037">factory</a>
|
109
|
+
<a href="#M000039">load_9p</a>
|
110
|
+
<a href="#M000034">new</a>
|
111
|
+
<a href="#M000038">to_9p</a>
|
120
112
|
</div>
|
121
113
|
</div>
|
122
114
|
|
@@ -173,12 +165,12 @@ Module <a href="Field/CounterField.html" class="link">Rumai::IXP::Struct::Field:
|
|
173
165
|
<div id="methods">
|
174
166
|
<h3 class="section-bar">Public Class methods</h3>
|
175
167
|
|
176
|
-
<div id="method-
|
177
|
-
<a name="
|
168
|
+
<div id="method-M000037" class="method-detail">
|
169
|
+
<a name="M000037"></a>
|
178
170
|
|
179
171
|
<div class="method-heading">
|
180
|
-
<a href="Field.src/
|
181
|
-
onclick="popupCode('Field.src/
|
172
|
+
<a href="Field.src/M000037.html" target="Code" class="method-signature"
|
173
|
+
onclick="popupCode('Field.src/M000037.html');return false;">
|
182
174
|
<span class="method-name">factory</span><span class="method-args">(aFormat)</span>
|
183
175
|
</a>
|
184
176
|
</div>
|
@@ -191,12 +183,12 @@ given format.
|
|
191
183
|
</div>
|
192
184
|
</div>
|
193
185
|
|
194
|
-
<div id="method-
|
195
|
-
<a name="
|
186
|
+
<div id="method-M000034" class="method-detail">
|
187
|
+
<a name="M000034"></a>
|
196
188
|
|
197
189
|
<div class="method-heading">
|
198
|
-
<a href="Field.src/
|
199
|
-
onclick="popupCode('Field.src/
|
190
|
+
<a href="Field.src/M000034.html" target="Code" class="method-signature"
|
191
|
+
onclick="popupCode('Field.src/M000034.html');return false;">
|
200
192
|
<span class="method-name">new</span><span class="method-args">(aName, aFormat = nil, aCounter = nil)</span>
|
201
193
|
</a>
|
202
194
|
</div>
|
@@ -218,12 +210,12 @@ given format.
|
|
218
210
|
|
219
211
|
<h3 class="section-bar">Public Instance methods</h3>
|
220
212
|
|
221
|
-
<div id="method-
|
222
|
-
<a name="
|
213
|
+
<div id="method-M000036" class="method-detail">
|
214
|
+
<a name="M000036"></a>
|
223
215
|
|
224
216
|
<div class="method-heading">
|
225
|
-
<a href="Field.src/
|
226
|
-
onclick="popupCode('Field.src/
|
217
|
+
<a href="Field.src/M000036.html" target="Code" class="method-signature"
|
218
|
+
onclick="popupCode('Field.src/M000036.html');return false;">
|
227
219
|
<span class="method-name">countee=</span><span class="method-args">(aField)</span>
|
228
220
|
</a>
|
229
221
|
</div>
|
@@ -236,12 +228,12 @@ of the given field).
|
|
236
228
|
</div>
|
237
229
|
</div>
|
238
230
|
|
239
|
-
<div id="method-
|
240
|
-
<a name="
|
231
|
+
<div id="method-M000035" class="method-detail">
|
232
|
+
<a name="M000035"></a>
|
241
233
|
|
242
234
|
<div class="method-heading">
|
243
|
-
<a href="Field.src/
|
244
|
-
onclick="popupCode('Field.src/
|
235
|
+
<a href="Field.src/M000035.html" target="Code" class="method-signature"
|
236
|
+
onclick="popupCode('Field.src/M000035.html');return false;">
|
245
237
|
<span class="method-name">counter=</span><span class="method-args">(aField)</span>
|
246
238
|
</a>
|
247
239
|
</div>
|
@@ -254,13 +246,13 @@ counted by the given field).
|
|
254
246
|
</div>
|
255
247
|
</div>
|
256
248
|
|
257
|
-
<div id="method-
|
258
|
-
<a name="
|
249
|
+
<div id="method-M000039" class="method-detail">
|
250
|
+
<a name="M000039"></a>
|
259
251
|
|
260
252
|
<div class="method-heading">
|
261
|
-
<a href="Field.src/
|
262
|
-
onclick="popupCode('Field.src/
|
263
|
-
<span class="method-name">load_9p</span><span class="method-args">(aStream,
|
253
|
+
<a href="Field.src/M000039.html" target="Code" class="method-signature"
|
254
|
+
onclick="popupCode('Field.src/M000039.html');return false;">
|
255
|
+
<span class="method-name">load_9p</span><span class="method-args">(aStream, aFieldValues)</span>
|
264
256
|
</a>
|
265
257
|
</div>
|
266
258
|
|
@@ -272,13 +264,13 @@ stream.
|
|
272
264
|
</div>
|
273
265
|
</div>
|
274
266
|
|
275
|
-
<div id="method-
|
276
|
-
<a name="
|
267
|
+
<div id="method-M000038" class="method-detail">
|
268
|
+
<a name="M000038"></a>
|
277
269
|
|
278
270
|
<div class="method-heading">
|
279
|
-
<a href="Field.src/
|
280
|
-
onclick="popupCode('Field.src/
|
281
|
-
<span class="method-name">to_9p</span><span class="method-args">(
|
271
|
+
<a href="Field.src/M000038.html" target="Code" class="method-signature"
|
272
|
+
onclick="popupCode('Field.src/M000038.html');return false;">
|
273
|
+
<span class="method-name">to_9p</span><span class="method-args">(aFieldValues)</span>
|
282
274
|
</a>
|
283
275
|
</div>
|
284
276
|
|