[External] : Re: MemorySegment APIs for reading and writing strings with known lengths
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Tue Nov 11 14:10:44 UTC 2025
Going back to this... do you have a use case where you would like to
know the byte length of a string encoded in a given charset?
Thanks!
Maurizio
On 10/11/2025 14:24, Maurizio Cimadamore wrote:
>
> I believe you. My hunch here would be to separate this one out, as it
> has more to do with the Charset/String API than it has to do with
> memory segments?
>
> E.g. you want an API like:
>
> String::getNumBytes(Charset)
>
> Whether this API exists or not seems orthogonal to the improvements
> described in the documents I shared.
>
More information about the panama-dev
mailing list