magickQueryConfigureOptions function

List<String>? magickQueryConfigureOptions(
  1. String pattern
)

Returns any configure options that match the specified pattern (e.g. "*" for all). Options include NAME, VERSION, LIB_VERSION, etc.

  • Note: An empty list is returned if there are no results.

Implementation

List<String>? magickQueryConfigureOptions(String pattern) =>
    using((Arena arena) {
      final Pointer<Char> patternPtr =
          pattern.toNativeUtf8(allocator: arena).cast();
      final Pointer<Size> numOptionsPtr = arena();
      final Pointer<Pointer<Char>> resultPtr =
          _magickWandBindings.MagickQueryConfigureOptions(
              patternPtr, numOptionsPtr);
      int numOptions = numOptionsPtr.value;
      final List<String>? result = resultPtr.toStringList(numOptions);
      _magickRelinquishMemory(resultPtr.cast());
      return result;
    });