mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8319556: Harmonize interface formatting in the FFM API
Reviewed-by: mcimadamore
This commit is contained in:
parent
cc4b0d9217
commit
73c5f60f41
2 changed files with 6 additions and 4 deletions
|
@ -396,7 +396,8 @@ import jdk.internal.foreign.layout.UnionLayoutImpl;
|
|||
* @sealedGraph
|
||||
* @since 22
|
||||
*/
|
||||
public sealed interface MemoryLayout permits SequenceLayout, GroupLayout, PaddingLayout, ValueLayout {
|
||||
public sealed interface MemoryLayout
|
||||
permits SequenceLayout, GroupLayout, PaddingLayout, ValueLayout {
|
||||
|
||||
/**
|
||||
* {@return the layout size, in bytes}
|
||||
|
|
|
@ -50,9 +50,10 @@ import jdk.internal.foreign.layout.ValueLayouts;
|
|||
* @sealedGraph
|
||||
* @since 22
|
||||
*/
|
||||
public sealed interface ValueLayout extends MemoryLayout permits
|
||||
ValueLayout.OfBoolean, ValueLayout.OfByte, ValueLayout.OfChar, ValueLayout.OfShort, ValueLayout.OfInt,
|
||||
ValueLayout.OfFloat, ValueLayout.OfLong, ValueLayout.OfDouble, AddressLayout {
|
||||
public sealed interface ValueLayout extends MemoryLayout
|
||||
permits ValueLayout.OfBoolean, ValueLayout.OfByte, ValueLayout.OfChar,
|
||||
ValueLayout.OfShort, ValueLayout.OfInt, ValueLayout.OfFloat,
|
||||
ValueLayout.OfLong, ValueLayout.OfDouble, AddressLayout {
|
||||
|
||||
/**
|
||||
* {@return the value's byte order}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue