Interface Mapper
- All Known Implementing Classes:
AddressMapper,ByteArrayMapper,ByteMapper,CharArrayMapper,CharMapper,DoubleArrayMapper,DoubleMapper,FloatArrayMapper,FloatMapper,IntArrayMapper,IntMapper,LongArrayMapper,LongMapper,ShortArrayMapper,ShortMapper
public interface Mapper
类型的映射 允许外部函数修改其值
如果仅用来读取 请考虑使用
Wrapper 或直接使用基本类型-
Method Summary
Modifier and TypeMethodDescriptionfromMemorySegment(MemorySegment memorySegment) 从 MemorySegment (内存段) 设置值toMemorySegment(Arena arena) 将内部数据转换为 MemorySegment (内存段)
-
Method Details
-
toMemorySegment
将内部数据转换为 MemorySegment (内存段)- Parameters:
arena- 作用域- Returns:
- MemorySegment
-
fromMemorySegment
从 MemorySegment (内存段) 设置值- Parameters:
memorySegment- a
-