476 477 478 479
# File 'lib/types.rb', line 476 def self.decode(data) data = data.unpack('n1a*') return self.new(data[0]), data[1] end