[foreign-memaccess] Integrated: 8253355: Add some overloads to memory access API

Maurizio Cimadamore mcimadamore at openjdk.java.net
Fri Sep 18 13:05:06 UTC 2020


On Fri, 18 Sep 2020 11:59:45 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: 926437ca
Author:    Maurizio Cimadamore <mcimadamore at openjdk.org>
URL:       https://git.openjdk.java.net/panama-foreign/commit/926437ca
Stats:     110 lines in 3 files changed: 0 ins; 98 del; 12 mod

8253355: Add some overloads to memory access API

Reviewed-by: sundar, jvernee

-------------

PR: https://git.openjdk.java.net/panama-foreign/pull/341


More information about the panama-dev mailing list