MCPcopy Create free account
hub / github.com/apache/qpid-proton / _pre_encode

Method _pre_encode

python/proton/_message.py:119–137  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

117 self.properties[new_key] = self.properties.pop(old_key)
118
119 def _pre_encode(self) -> None:
120 inst = Data(pn_message_instructions(self._msg))
121 ann = Data(pn_message_annotations(self._msg))
122 props = Data(pn_message_properties(self._msg))
123 body = Data(pn_message_body(self._msg))
124
125 inst.clear()
126 if self.instructions is not None:
127 inst.put_object(self.instructions)
128 ann.clear()
129 if self.annotations is not None:
130 ann.put_object(self.annotations)
131 props.clear()
132 if self.properties is not None:
133 self._check_property_keys()
134 props.put_object(self.properties)
135 body.clear()
136 if self.body is not None:
137 body.put_object(self.body)
138
139 def _post_decode(self) -> None:
140 inst = Data(pn_message_instructions(self._msg))

Callers 1

encodeMethod · 0.95

Calls 8

clearMethod · 0.95
put_objectMethod · 0.95
_check_property_keysMethod · 0.95
pn_message_instructionsFunction · 0.85
pn_message_annotationsFunction · 0.85
pn_message_propertiesFunction · 0.85
pn_message_bodyFunction · 0.85
DataClass · 0.70

Tested by

no test coverage detected