Class: String
Overview
count[2] s[count]
Class Method Summary
-
+ (Object) from_9p(stream)
Creates a new instance of this class from the given 9P2000 byte stream and returns the instance.
Instance Method Summary
-
- (Object) to_9p
Transforms this object into a string of 9P2000 bytes.
Class Method Details
+ (Object) from_9p(stream)
Creates a new instance of this class from the given 9P2000 byte stream and returns the instance.
693 694 695 |
# File 'lib/rumai/ixp/message.rb', line 693 def self.from_9p stream stream.read stream.read_9p(2) end |
Instance Method Details
- (Object) to_9p
Transforms this object into a string of 9P2000 bytes.
685 686 687 |
# File 'lib/rumai/ixp/message.rb', line 685 def to_9p length.to_9p(2) << self[0, Rumai::IXP::BYTE2_MASK] end |