All of the on-wire type codes.
# File usr/lib/ruby/vendor_ruby/thrift/protocol/compact_protocol.rb, line 89 def self.get_compact_type(ttype) val = TTYPE_TO_COMPACT[ttype] raise "don't know what type: #{ttype & 0x0f}" unless val val end
# File usr/lib/ruby/vendor_ruby/thrift/protocol/compact_protocol.rb, line 83 def self.get_ttype(compact_type) val = COMPACT_TO_TTYPE[compact_type & 0x0f] raise "don't know what type: #{compact_type & 0x0f}" unless val val end
# File usr/lib/ruby/vendor_ruby/thrift/protocol/compact_protocol.rb, line 48 def self.is_bool_type?(b) (b & 0x0f) == BOOLEAN_TRUE || (b & 0x0f) == BOOLEAN_FALSE end