Interface IntegerMapping<L extends ValueLayout>
- Type Parameters:
L- the integer layout type
- All Superinterfaces:
DataMapping<L>, Mapping<L>, PrimitiveMapping<L>
- All Known Subinterfaces:
Mapping.Byte, Mapping.CLong, Mapping.Int, Mapping.Long, Mapping.Short, Mapping.Size
- All Known Implementing Classes:
Mapping.Char
public sealed interface IntegerMapping<L extends ValueLayout>
extends PrimitiveMapping<L>
permits Mapping.Byte, Mapping.Char, Mapping.Short, Mapping.Int, Mapping.Long, Mapping.CLong, Mapping.Size
A mapping for an integer 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 TypeMethodDescriptionbooleansigned()Returns whether the integer is signed (true) or unsigned (false).Creates a new instance of this mapping with the specified type name.Methods inherited from interface DataMapping
allocateSegment, allocateSegment, allocateSegment, allocateSegment, array, mallocSegment, mallocSegmentMethods inherited from interface PrimitiveMapping
withByteAlignment
-
Method Details
-
signed
boolean signed()Returns whether the integer is signed (true) or unsigned (false).- Returns:
- whether the integer is signed
-
typedef
Description copied from interface:MappingCreates a new instance of this mapping with the specified type name.- Specified by:
typedefin interfaceMapping<L extends ValueLayout>- Specified by:
typedefin interfacePrimitiveMapping<L extends ValueLayout>- Returns:
- the new mapping
-