Package org.lwjgl.system
Interface FunctionProvider
-
- All Known Subinterfaces:
FunctionProviderLocal,SharedLibrary
- All Known Implementing Classes:
LinuxLibrary,MacOSXLibrary,MacOSXLibraryBundle,MacOSXLibraryDL,SharedLibrary.Default,SharedLibrary.Delegate,WindowsLibrary
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface FunctionProviderA provider of native function addresses.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default longgetFunctionAddress(java.lang.CharSequence functionName)CharSequenceversion ofgetFunctionAddress(ByteBuffer).longgetFunctionAddress(java.nio.ByteBuffer functionName)Returns the function address of the specified function.
-
-
-
Method Detail
-
getFunctionAddress
default long getFunctionAddress(java.lang.CharSequence functionName)
CharSequenceversion ofgetFunctionAddress(ByteBuffer).
-
getFunctionAddress
long getFunctionAddress(java.nio.ByteBuffer functionName)
Returns the function address of the specified function. If the function is not supported, returns 0L.- Parameters:
functionName- the encoded name of the function to query- Returns:
- the function address or 0L if the function is not supported
-
-