Package org.freedesktop.harfbuzz
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("io.github.jwharm.JavaGI")
public interface UnicodeDecomposeCompatibilityFunc
extends FunctionPointer
Deprecated.
Functional interface declaration of the
UnicodeDecomposeCompatibilityFunc callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintrun(UnicodeFuncs ufuncs, Codepoint u, Codepoint decomposed) Deprecated.default MemorySegmenttoCallback(Arena arena) Deprecated.Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, int, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)method.default intupcall(MemorySegment ufuncs, int u, MemorySegment decomposed, MemorySegment userData) Deprecated.Theupcallmethod is called from native code.
-
Method Details
-
run
Deprecated.Fully decomposeuto its Unicode compatibility decomposition. The codepoints of the decomposition will be written todecomposed.The complete length of the decomposition will be returned.If
uhas no compatibility decomposition, zero should be returned.The Unicode standard guarantees that a buffer of length
HB_UNICODE_MAX_DECOMPOSITION_LENcodepoints will always be sufficient for any compatibility decomposition plus an terminating value of 0. Consequently,decomposemust 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. -
upcall
Deprecated.Theupcallmethod is called from native code. The parameters are marshaled andrun(org.freedesktop.harfbuzz.UnicodeFuncs, org.freedesktop.harfbuzz.Codepoint, org.freedesktop.harfbuzz.Codepoint)is executed. -
toCallback
Deprecated.Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, int, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-