Class: Time
Class Method Summary collapse
-
.from_9p(stream) ⇒ Object
Creates a new instance of this class from the given 9P2000 byte stream and returns the instance.
Instance Method Summary collapse
-
#to_9p ⇒ Object
Transforms this object into a string of 9P2000 bytes.
Class Method Details
.from_9p(stream) ⇒ Object
Creates a new instance of this class from the given 9P2000 byte stream and returns the instance.
721 722 723 |
# File 'lib/rumai/ixp/message.rb', line 721 def self.from_9p stream at stream.read_9p(4) end |
Instance Method Details
#to_9p ⇒ Object
Transforms this object into a string of 9P2000 bytes.
713 714 715 |
# File 'lib/rumai/ixp/message.rb', line 713 def to_9p to_i.to_9p(4) end |