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

Method decode

python/proton/_data.py:820–828  ·  view source on GitHub ↗

Decodes the first value from supplied AMQP data and returns the number of bytes consumed. :param encoded: AMQP encoded binary data :raise: :exc:`DataException` if there is a Proton error.

(self, encoded: bytes)

Source from the content-addressed store, hash-verified

818 self._check(cd)
819
820 def decode(self, encoded: bytes) -> int:
821 """
822 Decodes the first value from supplied AMQP data and returns the
823 number of bytes consumed.
824
825 :param encoded: AMQP encoded binary data
826 :raise: :exc:`DataException` if there is a Proton error.
827 """
828 return self._check(pn_data_decode(self._data, encoded))
829
830 def put_list(self) -> None:
831 """

Callers 15

_testMethod · 0.95
testRoundTripMethod · 0.95
testBufferMethod · 0.95
testMemoryViewMethod · 0.95
utf82stringFunction · 0.45
bytes2stringFunction · 0.45
pn_tostringFunction · 0.45

Calls 2

_checkMethod · 0.95
pn_data_decodeFunction · 0.90

Tested by

no test coverage detected