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