Index
All Classes and Interfaces|All Packages|External Specifications
A
- Accessing memory segments - Search tag in interface java.lang.foreign.MemorySegment
- Section
- Access mode restrictions - Search tag in interface java.lang.foreign.MemoryLayout
- Section
- address() - Method in interface java.lang.foreign.MemorySegment
-
Returns the address of this memory segment.
- ADDRESS - Static variable in interface java.lang.foreign.ValueLayout
-
An address layout constant whose size is the same as that of a machine address (
size_t
), byte alignment set tosizeof(size_t)
, byte order set toByteOrder.nativeOrder()
. - ADDRESS_UNALIGNED - Static variable in interface java.lang.foreign.ValueLayout
-
An unaligned address layout constant whose size is the same as that of a machine address (
size_t
), and byte order set toByteOrder.nativeOrder()
. - AddressLayout - Interface in java.lang.foreign
-
A value layout used to model the address of some region of memory.
- Alignment - Search tag in interface java.lang.foreign.MemorySegment
- Section
- allocate(long) - Method in interface java.lang.foreign.SegmentAllocator
-
Returns a new memory segment with the given
byteSize
. - allocate(long, long) - Method in interface java.lang.foreign.Arena
-
Returns a native memory segment with the given size (in bytes) and alignment constraint (in bytes).
- allocate(long, long) - Method in interface java.lang.foreign.SegmentAllocator
-
Returns a new memory segment with the given
byteSize
andbyteAlignment
. - allocate(MemoryLayout) - Method in interface java.lang.foreign.SegmentAllocator
-
Returns a new memory segment with the given layout.
- allocate(MemoryLayout, long) - Method in interface java.lang.foreign.SegmentAllocator
-
Returns a new memory segment with the given
elementLayout
andcount
. - allocateFrom(AddressLayout, MemorySegment) - Method in interface java.lang.foreign.SegmentAllocator
-
Returns a new memory segment initialized with the address of the provided
value
as specified by the providedlayout
(i.e. byte ordering, alignment and size). - allocateFrom(ValueLayout.OfByte, byte) - Method in interface java.lang.foreign.SegmentAllocator
-
Returns a new memory segment initialized with the provided
byte
value
as specified by the providedlayout
(i.e. byte ordering, alignment and size). - allocateFrom(ValueLayout.OfByte, byte...) - Method in interface java.lang.foreign.SegmentAllocator
-
Returns a new memory segment with a byteSize() of
E*layout.byteSize()
initialized with the providedE
byte
elements
as specified by the providedlayout
(i.e. byte ordering, alignment and size). - allocateFrom(ValueLayout.OfChar, char) - Method in interface java.lang.foreign.SegmentAllocator
-
Returns a new memory segment initialized with the provided
char
value
as specified by the providedlayout
(i.e. byte ordering, alignment and size). - allocateFrom(ValueLayout.OfChar, char...) - Method in interface java.lang.foreign.SegmentAllocator
-
Returns a new memory segment with a byteSize() of
E*layout.byteSize()
initialized with the providedE
char
elements
as specified by the providedlayout
(i.e. byte ordering, alignment and size). - allocateFrom(ValueLayout.OfDouble, double) - Method in interface java.lang.foreign.SegmentAllocator
-
Returns a new memory segment initialized with the provided
double
value
as specified by the providedlayout
(i.e. byte ordering, alignment and size). - allocateFrom(ValueLayout.OfDouble, double...) - Method in interface java.lang.foreign.SegmentAllocator
-
Returns a new memory segment with a byteSize() of
E*layout.byteSize()
initialized with the providedE
double
elements
as specified by the providedlayout
(i.e. byte ordering, alignment and size). - allocateFrom(ValueLayout.OfFloat, float) - Method in interface java.lang.foreign.SegmentAllocator
-
Returns a new memory segment initialized with the provided
float
value
as specified by the providedlayout
(i.e. byte ordering, alignment and size). - allocateFrom(ValueLayout.OfFloat, float...) - Method in interface java.lang.foreign.SegmentAllocator
-
Returns a new memory segment with a byteSize() of
E*layout.byteSize()
initialized with the providedE
float
elements
as specified by the providedlayout
(i.e. byte ordering, alignment and size). - allocateFrom(ValueLayout.OfInt, int) - Method in interface java.lang.foreign.SegmentAllocator
-
Returns a new memory segment initialized with the provided
int
value
as specified by the providedlayout
(i.e. byte ordering, alignment and size). - allocateFrom(ValueLayout.OfInt, int...) - Method in interface java.lang.foreign.SegmentAllocator
-
Returns a new memory segment with a byteSize() of
E*layout.byteSize()
initialized with the providedE
int
elements
as specified by the providedlayout
(i.e. byte ordering, alignment and size). - allocateFrom(ValueLayout.OfLong, long) - Method in interface java.lang.foreign.SegmentAllocator
-
Returns a new memory segment initialized with the provided
long
value
as specified by the providedlayout
(i.e. byte ordering, alignment and size). - allocateFrom(ValueLayout.OfLong, long...) - Method in interface java.lang.foreign.SegmentAllocator
-
Returns a new memory segment with a byteSize() of
E*layout.byteSize()
initialized with the providedE
long
elements
as specified by the providedlayout
(i.e. byte ordering, alignment and size). - allocateFrom(ValueLayout.OfShort, short) - Method in interface java.lang.foreign.SegmentAllocator
-
Returns a new memory segment initialized with the provided
short
value
as specified by the providedlayout
(i.e. byte ordering, alignment and size). - allocateFrom(ValueLayout.OfShort, short...) - Method in interface java.lang.foreign.SegmentAllocator
-
Returns a new memory segment with a byteSize() of
E*layout.byteSize()
initialized with the providedE
short
elements
as specified by the providedlayout
(i.e. byte ordering, alignment and size). - allocateFrom(String) - Method in interface java.lang.foreign.SegmentAllocator
-
Converts a Java string into a null-terminated C string using the UTF-8 charset, storing the result into a memory segment.
- allocateFrom(String, Charset) - Method in interface java.lang.foreign.SegmentAllocator
-
Converts a Java string into a null-terminated C string using the provided charset, and storing the result into a memory segment.
- appendArgumentLayouts(MemoryLayout...) - Method in interface java.lang.foreign.FunctionDescriptor
-
Returns a function descriptor with the given argument layouts appended to the argument layouts of this function descriptor.
- Arena - Interface in java.lang.foreign
-
An arena controls the lifecycle of native memory segments, providing both flexible allocation and timely deallocation.
- argumentLayouts() - Method in interface java.lang.foreign.FunctionDescriptor
-
Returns the argument layouts of this function descriptor (as an unmodifiable list).
- asByteBuffer() - Method in interface java.lang.foreign.MemorySegment
-
Wraps this segment in a
ByteBuffer
. - asOverlappingSlice(MemorySegment) - Method in interface java.lang.foreign.MemorySegment
-
Returns a slice of this segment that is the overlap between this and the provided segment.
- asReadOnly() - Method in interface java.lang.foreign.MemorySegment
-
Returns a read-only view of this segment.
- asSlice(long) - Method in interface java.lang.foreign.MemorySegment
-
Returns a slice of this memory segment, at the given offset.
- asSlice(long, long) - Method in interface java.lang.foreign.MemorySegment
-
Returns a slice of this memory segment, at the given offset.
- asSlice(long, long, long) - Method in interface java.lang.foreign.MemorySegment
-
Returns a slice of this memory segment, at the given offset, with the provided alignment constraint.
- asSlice(long, MemoryLayout) - Method in interface java.lang.foreign.MemorySegment
-
Returns a slice of this memory segment with the given layout, at the given offset.
All Classes and Interfaces|All Packages|External Specifications