Class IntMapper

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

public class IntMapper extends Object implements Mapper
  • Constructor Details

    • IntMapper

      public IntMapper()
    • IntMapper

      public IntMapper(int value)
  • Method Details

    • getValue

      public int getValue()
    • setValue

      public void setValue(int 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