Modeling C-Strings with MemoryLayout?
Gavin Ray
ray.gavin97 at gmail.com
Sun Dec 25 19:24:03 UTC 2022
Is it possible to model C-Strings with MemoryLayouts?
I was thinking of using "MemoryLayout.sequenceLayout(0, C_CHAR)" and
computing the
length at runtime, plus manually adding the null-terminator.
Would this work alright, or is there some better way to do this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/panama-dev/attachments/20221225/55a9e70d/attachment.htm>
More information about the panama-dev
mailing list