From: Bryan Duxbury Date: Mon, 23 Mar 2009 23:36:16 +0000 (+0000) Subject: THRIFT-396. rb: BinaryProtocol missing method implementations X-Git-Tag: 0.2.0~242 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=6e26d3d9d21c9da91f9d71b8c72147e947939ac0;p=common%2Fthrift.git THRIFT-396. rb: BinaryProtocol missing method implementations Added missing implementations of write_struct_begin and read_struct_begin to BinaryProtocol. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@757599 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/rb/lib/thrift/protocol/binaryprotocol.rb b/lib/rb/lib/thrift/protocol/binaryprotocol.rb index 916626e5..9a7a6012 100644 --- a/lib/rb/lib/thrift/protocol/binaryprotocol.rb +++ b/lib/rb/lib/thrift/protocol/binaryprotocol.rb @@ -48,6 +48,8 @@ module Thrift end end + def write_struct_begin(name); nil; end + def write_field_begin(name, type, id) write_byte(type) write_i16(id) @@ -126,6 +128,8 @@ module Thrift end end + def read_struct_begin; nil; end + def read_field_begin type = read_byte if (type == Types::STOP)