Package java.lang.foreign
Interface Arena
-
- All Superinterfaces:
java.lang.AutoCloseable,SegmentAllocator
public interface Arena extends SegmentAllocator, java.lang.AutoCloseable
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default MemorySegmentallocateFrom(java.lang.String str)voidclose()static ArenaofConfined()static ArenaofShared()-
Methods inherited from interface java.lang.foreign.SegmentAllocator
allocate
-
-
-
-
Method Detail
-
ofShared
static Arena ofShared()
-
ofConfined
static Arena ofConfined()
-
allocateFrom
default MemorySegment allocateFrom(java.lang.String str)
-
close
void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
-