[foreign-memaccess+abi] RFR: 8274157: java.foreign: Add method MemorySegment::isOverlapping
Maurizio Cimadamore
mcimadamore at openjdk.java.net
Wed Sep 29 16:33:52 UTC 2021
On Wed, 29 Sep 2021 15:59:12 GMT, Lee Rhodes <github.com+12941506+leerho at openjdk.org> wrote:
> Yes, I think this should work.
Thanks for confirming. Btw is it the case that you want to perform bulk copies with byte-swapping for arbitrary sizes? E.g. you want to swap bytes for entire structs? I guess I'm not super sure of what is your real use case (e.g. the reason as to why just copying bytes from one segment to another is not enough). For instance, if you want to bulk copy arbitrary structs, adjusting for endianness is not simple at all - as you would have to swap each field individually.
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/585
More information about the panama-dev
mailing list