Class MemoryStack

java.lang.Object
overrungl.Pointer
overrungl.util.MemoryStack
All Implemented Interfaces:
AutoCloseable, SegmentAllocatorPREVIEW, Addressable

public sealed class MemoryStack extends Pointer implements SegmentAllocatorPREVIEW, AutoCloseable
MemoryStack relies on preview features of the Java platform:
Programs can only use MemoryStack when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
An off-heap memory stack.

This class should be used in a thread-local manner for stack allocations.

Since:
0.1.0
Author:
Spasi, lwjgl3, squid233
See Also: