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

Provide java.foreign.memory.Array a copy function similar to System.arraycopy

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-panama
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description

      Array in general need a way to copy a subset of elements, currently j.f.m.Array only provided an assign method, which is inconsistent and limited.

      Case in point, native code use null-terminate string quite often, to convert such data between j.l.String, byte[] or even short[] as UTF-16 wide characters with native buffers, developer has to jump a few hoops to get desired data.

        Attachments

          Activity

            People

            Assignee:
            henryjen Henry Jen
            Reporter:
            henryjen Henry Jen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: