RFR: 8333843: Provide guidelines on MemorySegment to read strings with known lengths [v3]
Maurizio Cimadamore
mcimadamore at openjdk.org
Fri Sep 13 11:53:05 UTC 2024
On Fri, 13 Sep 2024 10:27:27 GMT, Per Minborg <pminborg at openjdk.org> wrote:
>> This PR proposes to add a new overload to `MemorySegment::getString` whereby it is possible to pass in a known byte length of the content in a segment that should be converted to a String. This is useful in case one already knows the byte length and thereby does not need to scan for a null terminator.
>
> Per Minborg has updated the pull request incrementally with one additional commit since the last revision:
>
> Update after comments
Changes look good
-------------
Marked as reviewed by mcimadamore (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/20725#pullrequestreview-2302909492
More information about the core-libs-dev
mailing list