Class DoubleMapper
java.lang.Object
cool.scx.ffm.type.mapper.DoubleMapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromMemorySegment(MemorySegment memorySegment) 从 MemorySegment (内存段) 设置值doublegetValue()voidsetValue(double value) toMemorySegment(Arena arena) 将内部数据转换为 MemorySegment (内存段)
-
Constructor Details
-
DoubleMapper
public DoubleMapper() -
DoubleMapper
public DoubleMapper(double value)
-
-
Method Details
-
getValue
public double getValue() -
setValue
public void setValue(double value) -
toMemorySegment
Description copied from interface:Mapper将内部数据转换为 MemorySegment (内存段)- Specified by:
toMemorySegmentin interfaceMapper- Parameters:
arena- 作用域- Returns:
- MemorySegment
-
fromMemorySegment
Description copied from interface:Mapper从 MemorySegment (内存段) 设置值- Specified by:
fromMemorySegmentin interfaceMapper- Parameters:
memorySegment- a
-