(self, capacity: int = 16)
| 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"): |