Package org.bytedeco.javacpp
Class Loader.Helper
java.lang.Object
org.bytedeco.javacpp.Loader.Helper
- Enclosing class:
Loader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Object
accessGlobalRef
(Pointer globalRef) Returns an Object from the JNI global reference stored in the Pointer.static Pointer
Returns the address found under the given name in the "dynamic symbol tables" (Linux, Mac OS X, etc) or the "export tables" (Windows) of all libraries loaded, or null if not found.static void
deleteGlobalRef
(Pointer globalRef) Deletes the JNI global reference stored in the Pointer.static Pointer
Returns the JavaVM JNI object, as required by some APIs for initialization.static void
loadGlobal
(String filename) Loads all symbols from a library globally, that isdlopen(filename, RTLD_LAZY | RTLD_GLOBAL)
, or simply by default withLoadLibrary(filename)
on Windows.static Pointer
newGlobalRef
(Object object) Returns a JNI global reference stored in a Pointer for the given Object.static int
Returns the number of CPU chips installed according to the operating system, or 0 if unknown.static int
Returns the number of CPU cores usable according to the operating system, or 0 if unknown.static int
Returns the number of processors configured according to the operating system, or 0 if unknown.
-
Constructor Details
-
Helper
public Helper()
-
-
Method Details
-
totalProcessors
Returns the number of processors configured according to the operating system, or 0 if unknown. This value can be greater thanRuntime.availableProcessors()
andtotalCores()
. -
totalCores
Returns the number of CPU cores usable according to the operating system, or 0 if unknown. For SMT-capable systems, this value may be less thantotalProcessors()
. -
totalChips
Returns the number of CPU chips installed according to the operating system, or 0 if unknown. For multi-core processors, this value may be less thantotalCores()
. -
addressof
Returns the address found under the given name in the "dynamic symbol tables" (Linux, Mac OS X, etc) or the "export tables" (Windows) of all libraries loaded, or null if not found. -
loadGlobal
Loads all symbols from a library globally, that isdlopen(filename, RTLD_LAZY | RTLD_GLOBAL)
, or simply by default withLoadLibrary(filename)
on Windows. If the library name passed to one of the other load functions in this class ends with "!", this function will get called on them. -
getJavaVM
Returns the JavaVM JNI object, as required by some APIs for initialization. -
newGlobalRef
@Name("JavaCPP_newGlobalRef") @Cast("jobject") public static Pointer newGlobalRef(@Raw(withEnv=true) Object object) Returns a JNI global reference stored in a Pointer for the given Object. -
accessGlobalRef
@Name("JavaCPP_accessGlobalRef") @Raw(withEnv=true) public static Object accessGlobalRef(@Cast("jobject") Pointer globalRef) Returns an Object from the JNI global reference stored in the Pointer. -
deleteGlobalRef
@Name("JavaCPP_deleteGlobalRef") @Raw(withEnv=true) public static void deleteGlobalRef(@Cast("jobject") Pointer globalRef) Deletes the JNI global reference stored in the Pointer.
-