class Net::SSH::Buffer

def available

remain between the current position and the end of the buffer).
Returns the number of bytes available to be read (e.g., how many bytes
def available
  length - position
end