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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • None
    • Affects Version/s: repo-panama
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: