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

Method put_int

python/proton/_data.py:978–986  ·  view source on GitHub ↗

Puts a signed int value. :param i: an integral value in the range :math:`-(2^{31})` to :math:`2^{31} - 1` inclusive. :raise: * ``AssertionError`` if parameter is out of the range :math:`-(2^{31})` to :math:`2^{31} - 1` inclusive. * :exc:`DataException` if th

(self, i: Union[int32, int])

Source from the content-addressed store, hash-verified

976 self._check(pn_data_put_uint(self._data, ui))
977
978 def put_int(self, i: Union[int32, int]) -> None:
979 """
980 Puts a signed int value.
981
982 :param i: an integral value in the range :math:`-(2^{31})` to :math:`2^{31} - 1` inclusive.
983 :raise: * ``AssertionError`` if parameter is out of the range :math:`-(2^{31})` to :math:`2^{31} - 1` inclusive.
984 * :exc:`DataException` if there is a Proton error.
985 """
986 self._check(pn_data_put_int(self._data, i))
987
988 def put_char(self, c: Union[char, str]) -> None:
989 """

Callers 2

testTopLevelNextMethod · 0.80
testNestedNextMethod · 0.80

Calls 2

_checkMethod · 0.95
pn_data_put_intFunction · 0.85

Tested by

no test coverage detected