[foreign-memaccess+abi] RFR: 8308858: FFM API and strings [v2]
Jorn Vernee
jvernee at openjdk.org
Wed Jun 7 17:47:31 UTC 2023
On Wed, 7 Jun 2023 17:41:15 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> > For `getString` we need to determine the length of the string.
>
> That was the purpose for `numTermChars`. E.g. that determines the size of the term char, as well as the "stride" by which the string is scanned.
Sorry, that's what I meant. The `numTermChars` is used to determine the length of the string. I wanted to point that out/recap, before going into the alternative.
-------------
PR Comment: https://git.openjdk.org/panama-foreign/pull/836#issuecomment-1581253639
More information about the panama-dev
mailing list