Method: Thrift::BinaryProtocol#read_field_begin

Defined in:
lib/thrift/protocol/binary_protocol.rb

#read_field_beginObject



142
143
144
145
146
147
148
149
150
# File 'lib/thrift/protocol/binary_protocol.rb', line 142

def read_field_begin
  type = read_byte
  if (type == Types::STOP)
    [nil, type, 0]
  else
    id = read_i16
    [nil, type, id]
  end
end