Parent

Files

Class Index [+]

Quicksearch

Thrift::CompactProtocol::CompactTypes

All of the on-wire type codes.

Constants

BOOLEAN_TRUE
BOOLEAN_FALSE
BYTE
I16
I32
I64
DOUBLE
BINARY
LIST
SET
MAP
STRUCT
COMPACT_TO_TTYPE
TTYPE_TO_COMPACT

Public Class Methods

get_compact_type(ttype) click to toggle source
    # File /tmp/buildd/evernote-mode-0.10/ruby/lib/thrift/protocol/compact_protocol.rb, line 89
89:       def self.get_compact_type(ttype)
90:         val = TTYPE_TO_COMPACT[ttype]
91:         raise "don't know what type: #{ttype & 0x0f}" unless val
92:         val
93:       end
get_ttype(compact_type) click to toggle source
    # File /tmp/buildd/evernote-mode-0.10/ruby/lib/thrift/protocol/compact_protocol.rb, line 83
83:       def self.get_ttype(compact_type)
84:         val = COMPACT_TO_TTYPE[compact_type & 0x0f]
85:         raise "don't know what type: #{compact_type & 0x0f}" unless val
86:         val
87:       end
is_bool_type?(b) click to toggle source
    # File /tmp/buildd/evernote-mode-0.10/ruby/lib/thrift/protocol/compact_protocol.rb, line 48
48:       def self.is_bool_type?(b)
49:         (b & 0x0f) == BOOLEAN_TRUE || (b & 0x0f) == BOOLEAN_FALSE
50:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.