Class AddressMapper

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

public class AddressMapper extends Object implements Mapper
  • Constructor Details

  • Method Details

    • getValue

      public MemorySegment getValue()
    • setValue

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