[foreign-memaccess] RFR: 8253355: Add some overloads to memory access API
Maurizio Cimadamore
mcimadamore at openjdk.java.net
Fri Sep 18 12:06:45 UTC 2020
This patch adds two overload:
* MemoryAddress::asSegmentRestricted which takes an Object attachment
* MemorySegment::asSlice which takes a MemoryAddress base and a new length
These overloads make the API slightly more usable.
-------------
Commit messages:
- Add overloads for MemorySegment::asSlice and MemoryAddress::asSegmentRestricted
Changes: https://git.openjdk.java.net/panama-foreign/pull/341/files
Webrev: https://webrevs.openjdk.java.net/?repo=panama-foreign&pr=341&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8253355
Stats: 96 lines in 2 files changed: 88 ins; 0 del; 8 mod
Patch: https://git.openjdk.java.net/panama-foreign/pull/341.diff
Fetch: git fetch https://git.openjdk.java.net/panama-foreign pull/341/head:pull/341
PR: https://git.openjdk.java.net/panama-foreign/pull/341
More information about the panama-dev
mailing list