Interface PrimitiveMapping<L extends ValueLayout>
- Type Parameters:
L- the primitive layout type
- All Superinterfaces:
DataMapping<L>, Mapping<L>
- All Known Subinterfaces:
IntegerMapping<L>, Mapping.Byte, Mapping.CLong, Mapping.Int, Mapping.Long, Mapping.Short, Mapping.Size
- All Known Implementing Classes:
Mapping.Boolean, Mapping.Char, Mapping.Double, Mapping.Float
public sealed interface PrimitiveMapping<L extends ValueLayout>
extends DataMapping<L>
permits Mapping.Boolean, IntegerMapping<L>, Mapping.Float, Mapping.Double
A mapping for a primitive layout.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Mapping
Mapping.Boolean, Mapping.Byte, Mapping.Char, Mapping.CLong, Mapping.Double, Mapping.Float, Mapping.Int, Mapping.Long, Mapping.Opaque, Mapping.Pointer, Mapping.Sequence, Mapping.Short, Mapping.Size, Mapping.Struct, Mapping.Union -
Method Summary
Modifier and TypeMethodDescriptionCreates a new instance of this mapping with the specified type name.withByteAlignment(long byteAlignment) Returns a copy of this mapping with the specified byte alignment.Methods inherited from interface DataMapping
allocateSegment, allocateSegment, allocateSegment, allocateSegment, array, mallocSegment, mallocSegment
-
Method Details
-
withByteAlignment
Description copied from interface:DataMappingReturns a copy of this mapping with the specified byte alignment.- Specified by:
withByteAlignmentin interfaceDataMapping<L extends ValueLayout>- Parameters:
byteAlignment- the new byte alignment- Returns:
- the new mapping
-
typedef
Description copied from interface:MappingCreates a new instance of this mapping with the specified type name.- Specified by:
typedefin interfaceMapping<L extends ValueLayout>- Returns:
- the new mapping
-