Package org.lwjgl.system.macosx
Class MacOSXLibraryBundle
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.SharedLibrary.Default
-
- org.lwjgl.system.macosx.MacOSXLibrary
-
- org.lwjgl.system.macosx.MacOSXLibraryBundle
-
- All Implemented Interfaces:
java.lang.AutoCloseable,FunctionProvider,NativeResource,Pointer,SharedLibrary
public class MacOSXLibraryBundle extends MacOSXLibrary
Implements aSharedLibraryon the macOS usingCFBundle.
-
-
Nested Class Summary
-
Nested 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 Constructor Description MacOSXLibraryBundle(java.lang.String name, long bundleRef)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MacOSXLibraryBundlecreate(java.lang.String path)voidfree()Frees any native resources held by this object.longgetFunctionAddress(java.nio.ByteBuffer functionName)Returns the function address of the specified function.java.lang.StringgetPath()Returns the library path, if available.static MacOSXLibraryBundlegetWithIdentifier(java.lang.String bundleID)-
Methods inherited from interface org.lwjgl.system.FunctionProvider
getFunctionAddress
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from class org.lwjgl.system.SharedLibrary.Default
getName
-
-
-
-
Method Detail
-
getWithIdentifier
public static MacOSXLibraryBundle getWithIdentifier(java.lang.String bundleID)
-
create
public static MacOSXLibraryBundle create(java.lang.String path)
-
getPath
@Nullable public java.lang.String getPath()
Description copied from interface:SharedLibraryReturns the library path, if available.- Specified by:
getPathin interfaceSharedLibrary- Overrides:
getPathin classSharedLibrary.Default- Returns:
- the library path, or
nullif the path is not available.
-
getFunctionAddress
public long getFunctionAddress(java.nio.ByteBuffer functionName)
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.
-
-