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

Method put_ubyte

python/proton/_data.py:928–936  ·  view source on GitHub ↗

Puts an unsigned byte value. :param ub: an integral value in the range :math:`0` to :math:`2^8 - 1` inclusive :raise: * ``AssertionError`` if parameter is out of the range :math:`0` to :math:`2^8 - 1` inclusive. * :exc:`DataException` if there is a Proton er

(self, ub: Union[ubyte, int])

Source from the content-addressed store, hash-verified

926 self._check(pn_data_put_bool(self._data, b))
927
928 def put_ubyte(self, ub: Union[ubyte, int]) -> None:
929 """
930 Puts an unsigned byte value.
931
932 :param ub: an integral value in the range :math:`0` to :math:`2^8 - 1` inclusive
933 :raise: * ``AssertionError`` if parameter is out of the range :math:`0` to :math:`2^8 - 1` inclusive.
934 * :exc:`DataException` if there is a Proton error.
935 """
936 self._check(pn_data_put_ubyte(self._data, ub))
937
938 def put_byte(self, b: Union[byte, int]) -> None:
939 """

Callers 1

testNestedNextMethod · 0.80

Calls 2

_checkMethod · 0.95
pn_data_put_ubyteFunction · 0.85

Tested by

no test coverage detected