[foreign-memaccess+abi] RFR: 8308858: FFM API and strings
Christoph Läubrich
duke at openjdk.org
Wed Jun 7 14:46:10 UTC 2023
On Fri, 2 Jun 2023 18:25:33 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> Moreover, C more or less requires that a string, whether expressed as char* or wchar_t* cannot contain any element in the array that is a terminator char.
Why not then using two method:
- get/set`CString`
- get/set `WString`
that both accept a generic char-set and let the user choose a suitable one as the *name* of the charset do not really matter much (as long as both sides use the same byte -> char).
-------------
PR Comment: https://git.openjdk.org/panama-foreign/pull/836#issuecomment-1576196469
More information about the panama-dev
mailing list