Class LongMapper

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

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

    • LongMapper

      public LongMapper()
    • LongMapper

      public LongMapper(long value)
  • Method Details

    • getValue

      public long getValue()
    • setValue

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