Class ShortMapper

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

public class ShortMapper extends Object implements Mapper
  • Constructor Details

    • ShortMapper

      public ShortMapper()
    • ShortMapper

      public ShortMapper(short value)
  • Method Details

    • getValue

      public short 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