Module: Rumai::IXP::Stream
A 9P2000 byte stream.
Constants
- PACKING_FLAGS
- { 1 => 'C', 2 => 'v', 4 => 'V' }.freeze
Public Visibility
Public Instance Method Summary
#read_9p(aNumBytes) |
Unpacks the given number of bytes from this 9P2000 byte stream. |
---|
Public Instance Method Details
read_9p
public
read_9p(aNumBytes)
Unpacks the given number of bytes from this 9P2000 byte stream.
[View source]
28 29 30 |
# File 'lib/rumai/ixp/message.rb', line 28 def read_9p aNumBytes read(aNumBytes).unpack(PACKING_FLAGS[aNumBytes])[0] end |