Module: Thrift::ProtocolDecorator
- Included in:
- MultiplexedProtocol, StoredMessageProtocol
- Defined in:
- lib/thrift/protocol/protocol_decorator.rb
Instance Method Summary collapse
- #initialize(protocol) ⇒ Object
- #read_binary ⇒ Object
- #read_bool ⇒ Object
- #read_byte ⇒ Object
- #read_double ⇒ Object
- #read_field_begin ⇒ Object
- #read_field_end ⇒ Object
- #read_i16 ⇒ Object
- #read_i32 ⇒ Object
- #read_i64 ⇒ Object
- #read_list_begin ⇒ Object
- #read_list_end ⇒ Object
- #read_map_begin ⇒ Object
- #read_map_end ⇒ Object
- #read_message_begin ⇒ Object
- #read_message_end ⇒ Object
- #read_set_begin ⇒ Object
- #read_set_end ⇒ Object
- #read_string ⇒ Object
- #read_struct_begin ⇒ Object
- #read_struct_end ⇒ Object
- #trans ⇒ Object
- #write_binary(buf) ⇒ Object
- #write_bool(bool) ⇒ Object
- #write_byte(byte) ⇒ Object
- #write_double(dub) ⇒ Object
- #write_field_begin(name, type, id) ⇒ Object
- #write_field_end ⇒ Object
- #write_field_stop ⇒ Object
- #write_i16(i16) ⇒ Object
- #write_i32(i32) ⇒ Object
- #write_i64(i64) ⇒ Object
- #write_list_begin(etype, size) ⇒ Object
- #write_list_end ⇒ Object
- #write_map_begin(ktype, vtype, size) ⇒ Object
- #write_map_end ⇒ Object
- #write_message_begin(name, type, seqid) ⇒ Object
- #write_message_end ⇒ Object
- #write_set_begin(etype, size) ⇒ Object
- #write_set_end ⇒ Object
- #write_string(str) ⇒ Object
- #write_struct_begin(name) ⇒ Object
- #write_struct_end ⇒ Object
Instance Method Details
#initialize(protocol) ⇒ Object
4 5 6 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 4 def initialize(protocol) @protocol = protocol end |
#read_binary ⇒ Object
172 173 174 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 172 def read_binary @protocol.read_binary end |
#read_bool ⇒ Object
144 145 146 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 144 def read_bool @protocol.read_bool end |
#read_byte ⇒ Object
148 149 150 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 148 def read_byte @protocol.read_byte end |
#read_double ⇒ Object
164 165 166 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 164 def read_double @protocol.read_double end |
#read_field_begin ⇒ Object
112 113 114 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 112 def read_field_begin @protocol.read_field_begin end |
#read_field_end ⇒ Object
116 117 118 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 116 def read_field_end @protocol.read_field_end end |
#read_i16 ⇒ Object
152 153 154 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 152 def read_i16 @protocol.read_i16 end |
#read_i32 ⇒ Object
156 157 158 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 156 def read_i32 @protocol.read_i32 end |
#read_i64 ⇒ Object
160 161 162 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 160 def read_i64 @protocol.read_i64 end |
#read_list_begin ⇒ Object
128 129 130 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 128 def read_list_begin @protocol.read_list_begin end |
#read_list_end ⇒ Object
132 133 134 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 132 def read_list_end @protocol.read_list_end end |
#read_map_begin ⇒ Object
120 121 122 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 120 def read_map_begin @protocol.read_map_begin end |
#read_map_end ⇒ Object
124 125 126 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 124 def read_map_end @protocol.read_map_end end |
#read_message_begin ⇒ Object
96 97 98 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 96 def @protocol. end |
#read_message_end ⇒ Object
100 101 102 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 100 def @protocol. end |
#read_set_begin ⇒ Object
136 137 138 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 136 def read_set_begin @protocol.read_set_begin end |
#read_set_end ⇒ Object
140 141 142 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 140 def read_set_end @protocol.read_set_end end |
#read_string ⇒ Object
168 169 170 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 168 def read_string @protocol.read_string end |
#read_struct_begin ⇒ Object
104 105 106 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 104 def read_struct_begin @protocol.read_struct_begin end |
#read_struct_end ⇒ Object
108 109 110 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 108 def read_struct_end @protocol.read_struct_end end |
#trans ⇒ Object
8 9 10 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 8 def trans @protocol.trans end |
#write_binary(buf) ⇒ Object
92 93 94 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 92 def write_binary(buf) @protocol.write_binary(buf) end |
#write_bool(bool) ⇒ Object
64 65 66 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 64 def write_bool(bool) @protocol.write_bool(bool) end |
#write_byte(byte) ⇒ Object
68 69 70 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 68 def write_byte(byte) @protocol.write_byte(byte) end |
#write_double(dub) ⇒ Object
84 85 86 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 84 def write_double(dub) @protocol.write_double(dub) end |
#write_field_begin(name, type, id) ⇒ Object
28 29 30 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 28 def write_field_begin(name, type, id) @protocol.write_field_begin(name, type, id) end |
#write_field_end ⇒ Object
32 33 34 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 32 def write_field_end @protocol.write_field_end end |
#write_field_stop ⇒ Object
36 37 38 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 36 def write_field_stop @protocol.write_field_stop end |
#write_i16(i16) ⇒ Object
72 73 74 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 72 def write_i16(i16) @protocol.write_i16(i16) end |
#write_i32(i32) ⇒ Object
76 77 78 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 76 def write_i32(i32) @protocol.write_i32(i32) end |
#write_i64(i64) ⇒ Object
80 81 82 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 80 def write_i64(i64) @protocol.write_i64(i64) end |
#write_list_begin(etype, size) ⇒ Object
48 49 50 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 48 def write_list_begin(etype, size) @protocol.write_list_begin(etype, size) end |
#write_list_end ⇒ Object
52 53 54 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 52 def write_list_end @protocol.write_list_end end |
#write_map_begin(ktype, vtype, size) ⇒ Object
40 41 42 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 40 def write_map_begin(ktype, vtype, size) @protocol.write_map_begin(ktype, vtype, size) end |
#write_map_end ⇒ Object
44 45 46 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 44 def write_map_end @protocol.write_map_end end |
#write_message_begin(name, type, seqid) ⇒ Object
12 13 14 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 12 def (name, type, seqid) @protocol. end |
#write_message_end ⇒ Object
16 17 18 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 16 def @protocol. end |
#write_set_begin(etype, size) ⇒ Object
56 57 58 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 56 def write_set_begin(etype, size) @protocol.write_set_begin(etype, size) end |
#write_set_end ⇒ Object
60 61 62 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 60 def write_set_end @protocol.write_set_end end |
#write_string(str) ⇒ Object
88 89 90 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 88 def write_string(str) @protocol.write_string(str) end |
#write_struct_begin(name) ⇒ Object
20 21 22 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 20 def write_struct_begin(name) @protocol.write_struct_begin(name) end |
#write_struct_end ⇒ Object
24 25 26 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 24 def write_struct_end @protocol.write_struct_end end |