def capacity(self) -> int: """ Get the amount of free space for input following the transport's tail pointer. :return: Available space for input in bytes. :raise: :exc:`TransportException` if there is any Proton error. """ c = pn_transport_capacity(self._impl) if c >= PN_EOS: return c else: return self._check(c)
def capacity(self): c = pn_transport_capacity(self._impl) if c >= PN_EOS: return c else: return self._check(c)