Package com.github.stephengold.joltjni
Class TempAllocatorImplWithMallocFallback
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.TempAllocator
com.github.stephengold.joltjni.TempAllocatorImplWithMallocFallback
- All Implemented Interfaces:
ConstJoltPhysicsObject
,AutoCloseable
,Comparable<JoltPhysicsObject>
A flexible implementation of
TempAllocator
.-
Constructor Summary
ConstructorsConstructorDescriptionTempAllocatorImplWithMallocFallback
(int numBytes) Instantiate an allocator with the specified initial capacity. -
Method Summary
Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
Constructor Details
-
TempAllocatorImplWithMallocFallback
public TempAllocatorImplWithMallocFallback(int numBytes) Instantiate an allocator with the specified initial capacity.- Parameters:
numBytes
- the desired initial capacity (in bytes)
-