# File lib/beefcake/buffer/base.rb, line 15
    def self.wire_for(type)
      case type
      when Class
        if encodable?(type)
          2
        else
          raise UnknownType, type
        end
      when :int32, :uint32, :sint32, :int64, :uint64, :sint64, :bool, Module
        0
      when :fixed64, :sfixed64, :double
        1
      when :string, :bytes
        2
      when :fixed32, :sfixed32, :float
        5
      else
        raise UnknownType, type
      end
    end