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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • repo-panama
    • core-libs

      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.

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

              Created:
              Updated:
              Resolved: