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

Method put_described

python/proton/_data.py:894–909  ·  view source on GitHub ↗

Puts a described value. A described node has two children, the descriptor and the value. These are specified by entering the node and putting the desired values. >>> data = Data() >>> data.put_described() >>> data.enter() >>>

(self)

Source from the content-addressed store, hash-verified

892 self._check(pn_data_put_array(self._data, described, element_type))
893
894 def put_described(self) -> None:
895 """
896 Puts a described value. A described node has two children, the
897 descriptor and the value. These are specified by entering the node
898 and putting the desired values.
899
900 >>> data = Data()
901 >>> data.put_described()
902 >>> data.enter()
903 >>> data.put_symbol("value-descriptor")
904 >>> data.put_string("the value")
905 >>> data.exit()
906
907 :raise: :exc:`DataException` if there is a Proton error.
908 """
909 self._check(pn_data_put_described(self._data))
910
911 def put_null(self) -> None:
912 """

Callers 4

put_py_describedMethod · 0.95
testCopyMethod · 0.80
putMethod · 0.80
ProtonClass · 0.80

Calls 2

_checkMethod · 0.95
pn_data_put_describedFunction · 0.85

Tested by

no test coverage detected