-
Bug
-
Resolution: Fixed
-
P3
-
None
-
repo-panama
When we introduced the MemoryCopy helper class, few issues were raised:
* the order of arguments diverges from that of other JDK APIs (although we acknowledged that there was no other API quite like this)
* the naming of parameters felt too heavy, as distinguishing between "index" and "offset" is probably good enough
* naming of the method seems too verbose as well, with copyFromArray and copyToArray - which can be inferred from position of arguments.
* it would probably be a good idea to add some limited support for complex memory segment copy in this class as well.
* the order of arguments diverges from that of other JDK APIs (although we acknowledged that there was no other API quite like this)
* the naming of parameters felt too heavy, as distinguishing between "index" and "offset" is probably good enough
* naming of the method seems too verbose as well, with copyFromArray and copyToArray - which can be inferred from position of arguments.
* it would probably be a good idea to add some limited support for complex memory segment copy in this class as well.
- duplicates
-
JDK-8273905 Foreign API refresh
-
- Resolved
-
-
JDK-8268743 Require a better way for copying data between MemorySegments and on-heap arrays
-
- Closed
-
- links to
-
Review openjdk/panama-foreign/568