Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8345292

Improve javadocs for MemorySegment::getStrings defining word boundary cases

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 22, 23
    • core-libs

      The MemorySegment::getString overloads should specify how words (e.g. double and quad bytes) are handled in cases where there are no exact matches in size for 16 and 32-bit coded strings (i.e., the last reminder is not looked upon).

      Also, multi-byte coding only looks at nulls that are aligned with the particular coding boundaries (e.g. looking for byte {0, 0} only occurs at 16-bit boundaries for UTF-16)

            pminborg Per-Ake Minborg
            pminborg Per-Ake Minborg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: