Interface CompletionStrncmpFunc

All Superinterfaces:
FunctionPointer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @Deprecated @Generated("org.javagi.JavaGI") public interface CompletionStrncmpFunc extends FunctionPointer
Deprecated.

Functional interface declaration of the CompletionStrncmpFunc callback.

See Also:
  • Method Details

    • run

      @Deprecated int run(String s1, String s2, long n)
      Deprecated.
      Rarely used API
      Specifies the type of the function passed to g_completion_set_compare(). This is used when you use strings as GCompletion items.
      Parameters:
      s1 - string to compare with s2.
      s2 - string to compare with s1.
      n - maximal number of bytes to compare.
      Returns:
      an integer less than, equal to, or greater than zero if the first n bytes of s1 is found, respectively, to be less than, to match, or to be greater than the first n bytes of s2.
    • upcall

      default int upcall(MemorySegment s1, MemorySegment s2, long n)
      Deprecated.
      The upcall method is called from native code. The parameters are marshaled and run(String, String, long) is executed.
    • toCallback

      default MemorySegment toCallback(Arena arena)
      Deprecated.
      Creates a native function pointer to the upcall(MemorySegment, MemorySegment, long) method.
      Specified by:
      toCallback in interface FunctionPointer
      Parameters:
      arena - the arena in which the function pointer is allocated
      Returns:
      the native function pointer