<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>String</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="../css/reset.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="../css/main.css" type="text/css" media="screen" />
    <script src="../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
    <script src="../js/main.js" type="text/javascript" charset="utf-8"></script>
</head>

<body>     
    <div class="banner">
        <h1>
            <span class="type">Class</span> 
            String 
            
                <span class="parent">&lt; 
                    
                    <a href="Object.html">Object</a>
                    
                </span>
            
        </h1>
        <ul class="files">
            
            <li><a href="../files/lib/rumai/ixp/message_rb.html">lib/rumai/ixp/message.rb</a></li>
            
        </ul>
    </div>
    <div id="bodyContent">
        <div id="content">
    
    <div class="description">
        <p>
count[2] s[count]
</p>

    </div>
    

    

    
    

    
    
    <div class="sectiontitle">Methods</div>
    <dl class="methods">
    
        <dt>F</dt>
        <dd>
            <ul>
                
                <li><a href="#M000171">from_9p</a></li>
                
            </ul>
        </dd>
    
        <dt>T</dt>
        <dd>
            <ul>
                
                <li><a href="#M000170">to_9p</a></li>
                
            </ul>
        </dd>
    
    </dl>
    

    

    

    

    

    

    
            <div class="sectiontitle">Class Public methods</div>
            
            <div class="method">
                <div class="title" id="M000171">
                    
                    <a name="M000171"></a><b>from_9p</b>(stream)
                    
                </div>
                
                <div class="description">
                  <p>
Creates a new instance of this class from the given 9P2000 byte stream and
returns the instance.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('M000171_source')" id="l_M000171_source">show</a>
                        
                        | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/ixp/message.rb#L690" target="_blank" class="github_url">on GitHub</a>
                        
                    </p>
                    <div id="M000171_source" class="dyn-source">
                        <pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 690</span>
  <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">stream</span>
    <span class="ruby-identifier">stream</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">stream</span>.<span class="ruby-identifier">read_9p</span>(<span class="ruby-value">2</span>))
  <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="sectiontitle">Instance Public methods</div>
            
            <div class="method">
                <div class="title" id="M000170">
                    
                    <a name="M000170"></a><b>to_9p</b>()
                    
                </div>
                
                <div class="description">
                  <p>
Transforms this object into a string of 9P2000 bytes.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('M000170_source')" id="l_M000170_source">show</a>
                        
                        | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/ixp/message.rb#L682" target="_blank" class="github_url">on GitHub</a>
                        
                    </p>
                    <div id="M000170_source" class="dyn-source">
                        <pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 682</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_9p</span>
    <span class="ruby-identifier">length</span>.<span class="ruby-identifier">to_9p</span>(<span class="ruby-value">2</span>) <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-value">0</span>, <span class="ruby-constant">Rumai</span><span class="ruby-operator">::</span><span class="ruby-constant">IXP</span><span class="ruby-operator">::</span><span class="ruby-constant">BYTE2_MASK</span>]
  <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
</div>
    </div>
  </body>
</html>