def pre_encode
Codec::Data.from_object(Cproton::pn_message_properties(@impl),
!@properties.empty? && Types.symbol_keys!(@properties))
Codec::Data.from_object(Cproton::pn_message_instructions(@impl),
!@instructions.empty? && Types.symbol_keys!(@instructions))
if @annotations
@annotations.keys.each do |k|
@annotations[k.to_sym] = @annotations.delete(k) unless k.is_a? Symbol
end
end
Codec::Data.from_object(Cproton::pn_message_annotations(@impl), !@annotations.empty? && @annotations)
Codec::Data.from_object(Cproton::pn_message_body(@impl), @body)
end