hasMatchingQueryables method

bool hasMatchingQueryables()

Returns whether any queryables currently match this querier's key expression.

Implementation

bool hasMatchingQueryables() {
  if (_closed) throw StateError('Querier has been closed');
  final matching = calloc<Int8>();
  try {
    final rc = bindings.zd_querier_get_matching_status(_ptr.cast(), matching);
    if (rc != 0) {
      throw ZenohException('Failed to get matching status', rc);
    }
    return matching.value != 0;
  } finally {
    calloc.free(matching);
  }
}