class Net::SSH::Packet

def instantiate!

by the registered format for the packet.
Parse the packet's contents and assign the named elements, as described
def instantiate!
  (@@types[type] || []).each do |name, datatype|
    @named_elements[name.to_sym] = if datatype == :buffer
                                     remainder_as_buffer
                                   else
                                     send("read_#{datatype}")
                                   end
  end
end