Class FloatMapper
java.lang.Object
cool.scx.ffm.mapper.FloatMapper
- All Implemented Interfaces:
Mapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfromMemorySegment(MemorySegment memorySegment) 从 MemorySegment (内存段) 设置值floatgetValue()voidsetValue(float value) toMemorySegment(Arena arena) 将内部数据转换为 MemorySegment (内存段)
-
Constructor Details
-
FloatMapper
public FloatMapper() -
FloatMapper
public FloatMapper(float value)
-
-
Method Details
-
getValue
public float getValue() -
setValue
public void setValue(float 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
-