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

Method __init__

python/proton/_data.py:681–687  ·  view source on GitHub ↗
(self, capacity: int = 16)

Source from the content-addressed store, hash-verified

679 return Data.type_names[amqptype]
680
681 def __init__(self, capacity: int = 16) -> None:
682 if isinstance(capacity, (int, long)):
683 self._data = pn_data(capacity)
684 self._free = True
685 else:
686 self._data = capacity
687 self._free = False
688
689 def __del__(self) -> None:
690 if self._free and hasattr(self, "_data"):

Callers

nothing calls this directly

Calls 1

pn_dataFunction · 0.85

Tested by

no test coverage detected