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
- #read_uuid ⇒ 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
- #write_uuid(uuid) ⇒ Object
Instance Method Details
#initialize(protocol) ⇒ Object
23 24 25 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 23 def initialize(protocol) @protocol = protocol end |
#read_binary ⇒ Object
195 196 197 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 195 def read_binary @protocol.read_binary end |
#read_bool ⇒ Object
167 168 169 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 167 def read_bool @protocol.read_bool end |
#read_byte ⇒ Object
171 172 173 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 171 def read_byte @protocol.read_byte end |
#read_double ⇒ Object
187 188 189 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 187 def read_double @protocol.read_double end |
#read_field_begin ⇒ Object
135 136 137 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 135 def read_field_begin @protocol.read_field_begin end |
#read_field_end ⇒ Object
139 140 141 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 139 def read_field_end @protocol.read_field_end end |
#read_i16 ⇒ Object
175 176 177 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 175 def read_i16 @protocol.read_i16 end |
#read_i32 ⇒ Object
179 180 181 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 179 def read_i32 @protocol.read_i32 end |
#read_i64 ⇒ Object
183 184 185 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 183 def read_i64 @protocol.read_i64 end |
#read_list_begin ⇒ Object
151 152 153 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 151 def read_list_begin @protocol.read_list_begin end |
#read_list_end ⇒ Object
155 156 157 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 155 def read_list_end @protocol.read_list_end end |
#read_map_begin ⇒ Object
143 144 145 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 143 def read_map_begin @protocol.read_map_begin end |
#read_map_end ⇒ Object
147 148 149 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 147 def read_map_end @protocol.read_map_end end |
#read_message_begin ⇒ Object
119 120 121 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 119 def @protocol. end |
#read_message_end ⇒ Object
123 124 125 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 123 def @protocol. end |
#read_set_begin ⇒ Object
159 160 161 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 159 def read_set_begin @protocol.read_set_begin end |
#read_set_end ⇒ Object
163 164 165 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 163 def read_set_end @protocol.read_set_end end |
#read_string ⇒ Object
191 192 193 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 191 def read_string @protocol.read_string end |
#read_struct_begin ⇒ Object
127 128 129 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 127 def read_struct_begin @protocol.read_struct_begin end |
#read_struct_end ⇒ Object
131 132 133 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 131 def read_struct_end @protocol.read_struct_end end |
#read_uuid ⇒ Object
199 200 201 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 199 def read_uuid @protocol.read_uuid end |
#trans ⇒ Object
27 28 29 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 27 def trans @protocol.trans end |
#write_binary(buf) ⇒ Object
111 112 113 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 111 def write_binary(buf) @protocol.write_binary(buf) end |
#write_bool(bool) ⇒ Object
83 84 85 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 83 def write_bool(bool) @protocol.write_bool(bool) end |
#write_byte(byte) ⇒ Object
87 88 89 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 87 def write_byte(byte) @protocol.write_byte(byte) end |
#write_double(dub) ⇒ Object
103 104 105 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 103 def write_double(dub) @protocol.write_double(dub) end |
#write_field_begin(name, type, id) ⇒ Object
47 48 49 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 47 def write_field_begin(name, type, id) @protocol.write_field_begin(name, type, id) end |
#write_field_end ⇒ Object
51 52 53 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 51 def write_field_end @protocol.write_field_end end |
#write_field_stop ⇒ Object
55 56 57 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 55 def write_field_stop @protocol.write_field_stop end |
#write_i16(i16) ⇒ Object
91 92 93 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 91 def write_i16(i16) @protocol.write_i16(i16) end |
#write_i32(i32) ⇒ Object
95 96 97 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 95 def write_i32(i32) @protocol.write_i32(i32) end |
#write_i64(i64) ⇒ Object
99 100 101 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 99 def write_i64(i64) @protocol.write_i64(i64) end |
#write_list_begin(etype, size) ⇒ Object
67 68 69 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 67 def write_list_begin(etype, size) @protocol.write_list_begin(etype, size) end |
#write_list_end ⇒ Object
71 72 73 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 71 def write_list_end @protocol.write_list_end end |
#write_map_begin(ktype, vtype, size) ⇒ Object
59 60 61 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 59 def write_map_begin(ktype, vtype, size) @protocol.write_map_begin(ktype, vtype, size) end |
#write_map_end ⇒ Object
63 64 65 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 63 def write_map_end @protocol.write_map_end end |
#write_message_begin(name, type, seqid) ⇒ Object
31 32 33 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 31 def (name, type, seqid) @protocol. end |
#write_message_end ⇒ Object
35 36 37 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 35 def @protocol. end |
#write_set_begin(etype, size) ⇒ Object
75 76 77 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 75 def write_set_begin(etype, size) @protocol.write_set_begin(etype, size) end |
#write_set_end ⇒ Object
79 80 81 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 79 def write_set_end @protocol.write_set_end end |
#write_string(str) ⇒ Object
107 108 109 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 107 def write_string(str) @protocol.write_string(str) end |
#write_struct_begin(name) ⇒ Object
39 40 41 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 39 def write_struct_begin(name) @protocol.write_struct_begin(name) end |
#write_struct_end ⇒ Object
43 44 45 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 43 def write_struct_end @protocol.write_struct_end end |
#write_uuid(uuid) ⇒ Object
115 116 117 |
# File 'lib/thrift/protocol/protocol_decorator.rb', line 115 def write_uuid(uuid) @protocol.write_uuid(uuid) end |