Class LongMapper
java.lang.Object
cool.scx.ffm.type.mapper.LongMapper
- All Implemented Interfaces:
Mapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromMemorySegment(MemorySegment memorySegment) 从 MemorySegment (内存段) 设置值longgetValue()voidsetValue(short value) toMemorySegment(Arena arena) 将内部数据转换为 MemorySegment (内存段)
-
Constructor Details
-
LongMapper
public LongMapper() -
LongMapper
public LongMapper(long value)
-
-
Method Details
-
getValue
public long getValue() -
setValue
public void setValue(short value) -
toMemorySegment
Description copied from interface:Mapper将内部数据转换为 MemorySegment (内存段)- Specified by:
toMemorySegmentin interfaceMapper- Parameters:
arena- 作用域- Returns:
- MemorySegment
-
fromMemorySegment
Description copied from interface:Mapper从 MemorySegment (内存段) 设置值- Specified by:
fromMemorySegmentin interfaceMapper- Parameters:
memorySegment- a
-