Exemple #1
0
    def __iter__(self):
        for idx in range(len(self)):
            stream_ptr = native_bt.trace_borrow_stream_by_index_const(self._ptr, idx)
            assert stream_ptr is not None

            id = native_bt.stream_get_id(stream_ptr)
            assert id >= 0

            yield id
Exemple #2
0
 def id(self):
     id = native_bt.stream_get_id(self._ptr)
     return id if id >= 0 else None
Exemple #3
0
 def id(self):
     id = native_bt.stream_get_id(self._ptr)
     return id if id >= 0 else None