MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.SystemMemory Class Reference
Inheritance diagram for meshlib.SystemMemory:

Public Member Functions

 SystemMemory (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 SystemMemory ()
 SystemMemory (long physicalTotal, long physicalAvailable)
 SystemMemory (meshlib.SystemMemory _other)
meshlib.SystemMemory assignFromAnother (meshlib.SystemMemory _other)
long physicalTotal ()
void setPhysicalTotal (long value)
long physicalAvailable ()
void setPhysicalAvailable (long value)
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

Detailed Description

Generated from class MR::SystemMemory.

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ SystemMemory() [1/4]

meshlib.SystemMemory.SystemMemory ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ SystemMemory() [2/4]

meshlib.SystemMemory.SystemMemory ( )

Constructs an empty (default-constructed) instance.

Calls MR_SystemMemory_DefaultConstruct().

◆ SystemMemory() [3/4]

meshlib.SystemMemory.SystemMemory ( long physicalTotal,
long physicalAvailable )

Constructs MR::SystemMemory elementwise. The reference to the parameter physicalTotal might be preserved in the constructed object. The reference to the parameter physicalAvailable might be preserved in the constructed object.

Calls MR_SystemMemory_ConstructFrom().

◆ SystemMemory() [4/4]

meshlib.SystemMemory.SystemMemory ( meshlib.SystemMemory _other)

Generated from constructor MR::SystemMemory::SystemMemory. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_SystemMemory_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.SystemMemory meshlib.SystemMemory.assignFromAnother ( meshlib.SystemMemory _other)

Generated from method MR::SystemMemory::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_SystemMemory_AssignFromAnother().

◆ physicalAvailable()

long meshlib.SystemMemory.physicalAvailable ( )

available amount of physical memory in the system, in bytes (0 if no info) Returns a pointer to a member variable of class MR::SystemMemory named physicalAvailable. The reference to this object might be preserved as the return value.

Calls MR_SystemMemory_Get_physicalAvailable().

◆ physicalTotal()

long meshlib.SystemMemory.physicalTotal ( )

total amount of physical memory in the system, in bytes (0 if no info) Returns a pointer to a member variable of class MR::SystemMemory named physicalTotal. The reference to this object might be preserved as the return value.

Calls MR_SystemMemory_Get_physicalTotal().

◆ setPhysicalAvailable()

void meshlib.SystemMemory.setPhysicalAvailable ( long value)

available amount of physical memory in the system, in bytes (0 if no info) Modifies a member variable of class MR::SystemMemory named physicalAvailable. The reference to the parameter value might be preserved in this object in element physicalAvailable.

Calls MR_SystemMemory_Set_physicalAvailable().

◆ setPhysicalTotal()

void meshlib.SystemMemory.setPhysicalTotal ( long value)

total amount of physical memory in the system, in bytes (0 if no info) Modifies a member variable of class MR::SystemMemory named physicalTotal. The reference to the parameter value might be preserved in this object in element physicalTotal.

Calls MR_SystemMemory_Set_physicalTotal().


The documentation for this class was generated from the following file: