Constructor and Description |
---|
Buffer(MemorySegment segment,
int size) |
Modifier and Type | Method and Description |
---|---|
static Buffer |
create(MemorySegment segment) |
static Buffer |
create(MemorySegment segment,
int size) |
int |
getMaxCapacity() |
MemorySegment |
getMemorySegment() |
ByteBuffer |
getNioBuffer(int index,
int length) |
int |
getSize() |
void |
setSize(int size) |
public Buffer(MemorySegment segment, int size)
public static Buffer create(MemorySegment segment)
public static Buffer create(MemorySegment segment, int size)
public MemorySegment getMemorySegment()
public int getSize()
public int getMaxCapacity()
public ByteBuffer getNioBuffer(int index, int length)
public void setSize(int size)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.