Pulling the (Foreign) String


The Foreign Function & Memory (FFM) API comes equipped with methods to read, writes strings from/to memory segments, as well as to allocate memory segments from existing Java strings. In this document we'll explore ways in which we can enhance the FFM API to support more efficient interoperability between strings and memory segments...

More at https://cr.openjdk.org/~mcimadamore/panama/strings_ffm.html