I'll probably write something in the wiki to help using JogAmp APIs to be used
efficiently with APIs heavily relying on java.lang.foreign (Foreign Function & Memory API). MemorySegment.asByteBuffer() converts a memory segment into a byte buffer, MemorySegment.ofBuffer(Buffer) converts a buffer into a memory segment.