Interface Mapping.Short
- All Superinterfaces:
DataMapping<ValueLayout.OfShort>, IntegerMapping<ValueLayout.OfShort>, Mapping<ValueLayout.OfShort>, PrimitiveMapping<ValueLayout.OfShort>
- 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.Shortcconst()Creates a new instance of this mapping with the CconstqualifiershortfromInt(int value) default shortget(MemorySegment segment, long offset) default intget32(MemorySegment segment, long offset) default intget32Aligned(MemorySegment segment, long offset) default intget32AtIndex(MemorySegment segment, long index) default intget32AtIndexAligned(MemorySegment segment, long index) default shortgetAligned(MemorySegment segment, long offset) default shortgetAtIndex(MemorySegment segment, long index) default shortgetAtIndexAligned(MemorySegment segment, long index) default Mapping.Shortset(MemorySegment segment, long offset, int value) default Mapping.Shortset(MemorySegment segment, long offset, short value) default Mapping.ShortsetAligned(MemorySegment segment, long offset, int value) default Mapping.ShortsetAligned(MemorySegment segment, long offset, short value) default Mapping.ShortsetAtIndex(MemorySegment segment, long index, int value) default Mapping.ShortsetAtIndex(MemorySegment segment, long index, short value) default Mapping.ShortsetAtIndexAligned(MemorySegment segment, long index, int value) default Mapping.ShortsetAtIndexAligned(MemorySegment segment, long index, short value) inttoInt(short value) default Mapping.ShortCreates a new instance of this mapping with the specified type name.default Mapping.ShortwithByteAlignment(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.OfShort>- Specified by:
withByteAlignmentin interfacePrimitiveMapping<ValueLayout.OfShort>- 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.OfShort>- Specified by:
typedefin interfaceMapping<ValueLayout.OfShort>- Specified by:
typedefin interfacePrimitiveMapping<ValueLayout.OfShort>- Returns:
- the new mapping
-
cconst
Description copied from interface:MappingCreates a new instance of this mapping with the Cconstqualifier- Specified by:
cconstin interfaceMapping<ValueLayout.OfShort>- Returns:
- the new mapping
-
get
-
getAtIndex
-
getAligned
-
getAtIndexAligned
-
set
-
setAtIndex
-
setAligned
-
setAtIndexAligned
-
toInt
int toInt(short value) -
fromInt
short fromInt(int value) -
get32
-
get32AtIndex
-
set
-
setAtIndex
-
get32Aligned
-
get32AtIndexAligned
-
setAligned
-
setAtIndexAligned
-