from (Net::SSH::Buffer)

        # File lib/net/ssh/buffer.rb, line 43
    43:     def self.from(*args)
    44:       raise ArgumentError, "odd number of arguments given" unless args.length % 2 == 0
    45:
    46:       buffer = new
    47:       0.step(args.length-1, 2) do |index|
    48:         type = args[index]
    49:         value = args[index+1]
    50:         if type == :raw
    51:           buffer.append(value.to_s)
    52:         elsif Array === value
    53:           buffer.send("write_#{type}", *value)
    54:         else
    55:           buffer.send("write_#{type}", value)
    56:         end
    57:       end
    58:
    59:       buffer
    60:     end