Package org.lwjgl.system.macosx
Class MacOSXLibraryDL
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.SharedLibrary.Default
org.lwjgl.system.macosx.MacOSXLibrary
org.lwjgl.system.macosx.MacOSXLibraryDL
- All Implemented Interfaces:
AutoCloseable,FunctionProvider,NativeResource,Pointer,SharedLibrary
Implements a
SharedLibrary on the macOS using dlopen.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.DefaultNested classes/interfaces inherited from interface org.lwjgl.system.SharedLibrary
SharedLibrary.Default, SharedLibrary.Delegate -
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfree()Frees any native resources held by this object.longgetFunctionAddress(ByteBuffer functionName) Returns the function address of the specified function.@Nullable StringgetPath()Returns the library path, if available.Methods inherited from class org.lwjgl.system.macosx.MacOSXLibrary
create, getWithIdentifierMethods inherited from class org.lwjgl.system.SharedLibrary.Default
getNameMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.FunctionProvider
getFunctionAddressMethods inherited from interface org.lwjgl.system.NativeResource
close
-
Constructor Details
-
MacOSXLibraryDL
-
MacOSXLibraryDL
-
-
Method Details
-
getPath
Description copied from interface:SharedLibraryReturns the library path, if available.- Returns:
- the library path, or
nullif the path is not available.
-
getFunctionAddress
Description copied from interface:FunctionProviderReturns 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
-
free
public void free()Description copied from interface:NativeResourceFrees any native resources held by this object.
-