MemoryLayoutPREVIEW
StructLayoutPREVIEW
, UnionLayoutPREVIEW
GroupLayout
is a preview API of the Java platform.
A compound layout that is an aggregation of multiple, heterogeneous
member layouts. There are two ways in which member layouts can be combined: if member layouts are laid out one after the other, the resulting group layout is a
struct layoutPREVIEW; conversely, if all member layouts are laid out at the same starting offset, the resulting group layout is a
union layoutPREVIEW.
Returns the member layouts of this group layout.
Returns a memory layout with the same characteristics as this layout, but with the given alignment constraint (in bytes).
Returns a memory layout with the same characteristics as this layout, but with the given name.
Returns a memory layout with the same characteristics as this layout, but with no name.
Methods declared in interface java.lang.foreign.MemoryLayoutPREVIEWbyteAlignment, byteOffset, byteOffsetHandle, byteSize, equals, hashCode, name, select, sliceHandle, toString, varHandle
Returns the member layouts of this group layout.
MemoryLayout.structLayout(MemoryLayout...)
PREVIEW, MemoryLayout.unionLayout(MemoryLayout...)
PREVIEW).
Returns a memory layout with the same characteristics as this layout, but with the given name.
withName
in interface MemoryLayoutPREVIEW
name
- the layout name.
Returns a memory layout with the same characteristics as this layout, but with no name.
withoutName
in interface MemoryLayoutPREVIEW
Returns a memory layout with the same characteristics as this layout, but with the given alignment constraint (in bytes).
withByteAlignment
in interface MemoryLayoutPREVIEW
byteAlignment
- the layout alignment constraint, expressed in bytes.
IllegalArgumentException
- if byteAlignment
is not a power of two.
IllegalArgumentException
- if byteAlignment
is less than M
, where M
is the maximum alignment constraint in any of the member layouts associated with this group layout.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4