JDK-8227394 : Add MemorySegment::asByteBuffer convenience method
  • Type: Enhancement
  • Component: tools
  • Sub-Component: jextract
  • Affected Version: repo-panama
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-07-08
  • Updated: 2020-02-07
  • Resolved: 2019-07-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
repo-panamaFixed
Related Reports
Relates :  
Description
We currently have the MemoryAddress::asByteBuffer method, which creates a ByteBuffer starting at the given address and with a given size.

We could add a convenience method to MemorySegment for creating a ByteBuffer with the same size as the memory segment.
Comments
Changeset: 6ed55dc1cc49 Author: jvernee Date: 2019-07-12 23:50 +0200 URL: https://hg.openjdk.java.net/panama/dev/rev/6ed55dc1cc49
12-07-2019