Module | Net::SSH::Util::ReaderBufferImpl |
In: |
lib/net/ssh/util/buffer.rb
|
A convenience module for representing a string of encoded data. It provides an interface for easily reading and decoding the buffer.
position | [R] | the current position of the pointer in the buffer |
Reads count bytes from the buffer. If count is nil, this will return all remaining text in the buffer. This method will increment the pointer.
Read a single byte and convert it into a boolean, using ‘C’ rules (i.e., zero is false, non-zero is true).
Read and return an SSH2-encoded string. The string starts with a long integer that describes the number of bytes remaining in the string.