Interface Mapping.CLong
- All Superinterfaces:
DataMapping<ValueLayout>, IntegerMapping<ValueLayout>, Mapping<ValueLayout>, PrimitiveMapping<ValueLayout>
- 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 TypeMethodDescriptioncconst()Creates a new instance of this mapping with the Cconstqualifierlongget(MemorySegment segment, long offset) longgetAligned(MemorySegment segment, long offset) longgetAtIndex(MemorySegment segment, long index) longgetAtIndexAligned(MemorySegment segment, long index) set(MemorySegment segment, long offset, long value) setAligned(MemorySegment segment, long offset, long value) setAtIndex(MemorySegment segment, long index, long value) setAtIndexAligned(MemorySegment segment, long index, long value) Creates 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, 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>- Specified by:
withByteAlignmentin interfacePrimitiveMapping<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 interfaceIntegerMapping<ValueLayout>- Specified by:
typedefin interfaceMapping<ValueLayout>- Specified by:
typedefin interfacePrimitiveMapping<ValueLayout>- Returns:
- the new mapping
-
cconst
Mapping.CLong cconst()Description copied from interface:MappingCreates a new instance of this mapping with the Cconstqualifier- Specified by:
cconstin interfaceMapping<ValueLayout>- Returns:
- the new mapping
-
get
-
getAtIndex
-
getAligned
-
getAtIndexAligned
-
set
-
setAtIndex
-
setAligned
-
setAtIndexAligned
-