THRIFT-396. rb: BinaryProtocol missing method implementations
authorBryan Duxbury <bryanduxbury@apache.org>
Mon, 23 Mar 2009 23:36:16 +0000 (23:36 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Mon, 23 Mar 2009 23:36:16 +0000 (23:36 +0000)
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

lib/rb/lib/thrift/protocol/binaryprotocol.rb

index 916626e..9a7a601 100644 (file)
@@ -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)