Method: Protobuf::Encoder#encode

Defined in:
lib/protobuf/encoder.rb

#encodeObject



19
20
21
22
23
24
25
# File 'lib/protobuf/encoder.rb', line 19

def encode
  message.each_field_for_serialization do |field, value|
    encode_field(field, value)
  end

  stream
end