Method: Net::SSH::Buffer#read_string

Defined in:
lib/net/ssh/buffer.rb

#read_stringObject

Read and return an SSH2-encoded string. The string starts with a long integer that describes the number of bytes remaining in the string. Returns nil if there are not enough bytes to satisfy the request.



223
224
225
226
# File 'lib/net/ssh/buffer.rb', line 223

def read_string
  length = read_long or return nil
  read(length)
end