Package org.lwjgl.system
Interface FunctionProvider
-
- All Known Subinterfaces:
- FunctionProviderLocal, SharedLibrary
- All Known Implementing Classes:
- LinuxLibrary, MacOSXLibrary, MacOSXLibraryBundle, MacOSXLibraryDL, SharedLibrary.Default, SharedLibrary.Delegate, WindowsLibrary
@FunctionalInterface public interface FunctionProviderA provider of native function addresses.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method and Description longgetFunctionAddress(java.nio.ByteBuffer functionName)Returns the function address of the specified function.default longgetFunctionAddress(java.lang.CharSequence functionName)CharSequenceversion ofFunctionProvider.getFunctionAddress(ByteBuffer).
-
-
-
Method Detail
-
getFunctionAddress
default long getFunctionAddress(java.lang.CharSequence functionName)
CharSequenceversion ofFunctionProvider.getFunctionAddress(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
-
-