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 Summary
Modifier and TypeMethodDescriptionintDeprecated.Rarely used APIdefault MemorySegmenttoCallback(Arena arena) Deprecated.Creates a native function pointer to theupcall(MemorySegment, MemorySegment, long)method.default intupcall(MemorySegment s1, MemorySegment s2, long n) Deprecated.Theupcallmethod is called from native code.
-
Method Details
-
run
Deprecated.Rarely used APISpecifies the type of the function passed to g_completion_set_compare(). This is used when you use strings asGCompletionitems.- Parameters:
s1- string to compare withs2.s2- string to compare withs1.n- maximal number of bytes to compare.- Returns:
- an integer less than, equal to, or greater than zero if
the first
nbytes ofs1is found, respectively, to be less than, to match, or to be greater than the firstnbytes ofs2.
-
upcall
Deprecated.Theupcallmethod is called from native code. The parameters are marshaled andrun(String, String, long)is executed. -
toCallback
Deprecated.Creates a native function pointer to theupcall(MemorySegment, MemorySegment, long)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-