<div dir="ltr"><div>Hi Panama experts,</div><div><br></div>The MemorySegment interface has several methods dedicated to supporting MappedMemorySegment such as isMapped, load, etc. May I ask if we can make it become a separate class that contains a NativeMemorySegment instead, and make the dedicated methods members of the encompassing class instead? I have taken a look at MappedMemorySegment and it seems that the only other methods that need to be mappedness-specific are asSlice and makeByteBuffer. And in that case, we can make asSlice and makeByteBuffer also methods for the encompassing class, too.<div><br></div><div>This may make the interface clearer by not overloading MemorySegment with methods that it is not really capable of, and also helps the JIT to emit more optimised code for other operations with a more restricted hierarchy.<br><div><br></div><div>Thanks a lot for your reading and I really appreciate your responses.</div></div></div>