| Modifier and Type | Field and Description |
|---|---|
| private final MemorySegment | |
| private long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public MemorySegment | allocate(long byteSize, long byteAlignment)
Implements java. Returns a new memory segment with the given |
| public boolean | |
| public long | |
| public void | |
| pack-priv MemorySegment |
| segment | back to summary |
|---|---|
| private final MemorySegment segment | |
| sp | back to summary |
|---|---|
| private long sp | |
| SlicingAllocator | back to summary |
|---|---|
| public SlicingAllocator(MemorySegment segment) | |
| allocate | back to summary |
|---|---|
| public MemorySegment allocate(long byteSize, long byteAlignment) Implements java. Doc from java. Returns a new memory segment with the given
| |
| canAllocate | back to summary |
|---|---|
| public boolean canAllocate(long byteSize, long byteAlignment) | |
| currentOffset | back to summary |
|---|---|
| public long currentOffset() | |
| resetTo | back to summary |
|---|---|
| public void resetTo(long offset) | |
| trySlice | back to summary |
|---|---|
| pack-priv MemorySegment trySlice(long byteSize, long byteAlignment) | |