Class FloatMapper

java.lang.Object
cool.scx.ffm.type.mapper.FloatMapper
All Implemented Interfaces:
Mapper

public class FloatMapper extends Object implements Mapper
FloatMapper
Version:
0.0.1
Author:
scx567888
  • Constructor Details

    • FloatMapper

      public FloatMapper()
    • FloatMapper

      public FloatMapper(float value)
  • Method Details

    • getValue

      public float getValue()
    • setValue

      public void setValue(float value)
    • toMemorySegment

      public MemorySegment toMemorySegment(Arena arena)
      Description copied from interface: Mapper
      将内部数据转换为 MemorySegment (内存段)
      Specified by:
      toMemorySegment in interface Mapper
      Parameters:
      arena - 作用域
      Returns:
      MemorySegment
    • fromMemorySegment

      public Object fromMemorySegment(MemorySegment memorySegment)
      Description copied from interface: Mapper
      从 MemorySegment (内存段) 设置值
      Specified by:
      fromMemorySegment in interface Mapper
      Parameters:
      memorySegment - a