Interface Mapping.Int
- All Superinterfaces:
DataMapping<ValueLayout.OfInt>, IntegerMapping<ValueLayout.OfInt>, Mapping<ValueLayout.OfInt>, PrimitiveMapping<ValueLayout.OfInt>
- Enclosing interface:
Mapping<L extends MemoryLayout>
-
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 TypeMethodDescriptiondefault Mapping.Intcconst()Creates a new instance of this mapping with the CconstqualifierintfromLong(long value) default intget(MemorySegment segment, long offset) default longget64(MemorySegment segment, long offset) default longget64Aligned(MemorySegment segment, long offset) default longget64AtIndex(MemorySegment segment, long index) default longget64AtIndexAligned(MemorySegment segment, long index) default intgetAligned(MemorySegment segment, long offset) default intgetAtIndex(MemorySegment segment, long index) default intgetAtIndexAligned(MemorySegment segment, long index) default Mapping.Intset(MemorySegment segment, long offset, int value) default Mapping.Intset(MemorySegment segment, long offset, long value) default Mapping.IntsetAligned(MemorySegment segment, long offset, int value) default Mapping.IntsetAligned(MemorySegment segment, long offset, long value) default Mapping.IntsetAtIndex(MemorySegment segment, long index, int value) default Mapping.IntsetAtIndex(MemorySegment segment, long index, long value) default Mapping.IntsetAtIndexAligned(MemorySegment segment, long index, int value) default Mapping.IntsetAtIndexAligned(MemorySegment segment, long index, long value) longtoLong(int value) default Mapping.IntCreates a new instance of this mapping with the specified type name.default Mapping.IntwithByteAlignment(long byteAlignment) Returns a copy of this mapping with the specified byte alignment.Methods inherited from interface DataMapping
allocateSegment, allocateSegment, allocateSegment, allocateSegment, array, mallocSegment, mallocSegmentMethods inherited from interface IntegerMapping
signed
-
Method Details
-
withByteAlignment
Description copied from interface:DataMappingReturns a copy of this mapping with the specified byte alignment.- Specified by:
withByteAlignmentin interfaceDataMapping<ValueLayout.OfInt>- Specified by:
withByteAlignmentin interfacePrimitiveMapping<ValueLayout.OfInt>- 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 interfaceIntegerMapping<ValueLayout.OfInt>- Specified by:
typedefin interfaceMapping<ValueLayout.OfInt>- Specified by:
typedefin interfacePrimitiveMapping<ValueLayout.OfInt>- Returns:
- the new mapping
-
cconst
Description copied from interface:MappingCreates a new instance of this mapping with the Cconstqualifier- Specified by:
cconstin interfaceMapping<ValueLayout.OfInt>- Returns:
- the new mapping
-
get
-
getAtIndex
-
getAligned
-
getAtIndexAligned
-
set
-
setAtIndex
-
setAligned
-
setAtIndexAligned
-
toLong
long toLong(int value) -
fromLong
int fromLong(long value) -
get64
-
get64AtIndex
-
set
-
setAtIndex
-
get64Aligned
-
get64AtIndexAligned
-
setAligned
-
setAtIndexAligned
-