class Net::SSH::Buffer

def read_string

Returns nil if there are not enough bytes to satisfy the request.
integer that describes the number of bytes remaining in the string.
Read and return an SSH2-encoded string. The string starts with a long
def read_string
  length = read_long or return nil
  read(length)
end