Interface UnicodeDecomposeCompatibilityFunc

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 UnicodeDecomposeCompatibilityFunc extends FunctionPointer
Deprecated.

Functional interface declaration of the UnicodeDecomposeCompatibilityFunc callback.

See Also:
  • Method Details

    • run

      @Deprecated int run(UnicodeFuncs ufuncs, Codepoint u, MemorySegment decomposed)
      Deprecated.

      Fully decompose u to its Unicode compatibility decomposition. The codepoints of the decomposition will be written to decomposed. The complete length of the decomposition will be returned.

      If u has no compatibility decomposition, zero should be returned.

      The Unicode standard guarantees that a buffer of length HB_UNICODE_MAX_DECOMPOSITION_LEN codepoints will always be sufficient for any compatibility decomposition plus an terminating value of 0. Consequently, decompose must be allocated by the caller to be at least this length. Implementations of this function type must ensure that they do not write past the provided array.

      Parameters:
      ufuncs - a Unicode function structure
      u - codepoint to decompose
      decomposed - address of codepoint array (of length HB_UNICODE_MAX_DECOMPOSITION_LEN) to write decomposition into
      Returns:
      number of codepoints in the full compatibility decomposition of u, or 0 if no decomposition available.
    • upcall

      default int upcall(MemorySegment ufuncs, int u, MemorySegment decomposed, MemorySegment userData)
      Deprecated.
      The upcall method is called from native code. The parameters are marshaled and run(UnicodeFuncs, Codepoint, MemorySegment) is executed.
    • toCallback

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