MemorySegment support in NIO channels
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Thu Nov 21 15:52:08 UTC 2024
Hi Joseph,
the topic has been brought up few times. While we have no concrete plans
at the moment, we'd like to investigate how to bring more synergy
between nio and FFM.
Thanks for reaching out!
Maurizio
On 21/11/2024 14:36, Joseph Tarbit wrote:
> Hi,
>
> I was wondering if direct support for MemorySegments would ever be
> added to the NIO channel APIs. Obviously at the moment you must
> convert segments to ByteBuffers which can get a little fiddly if the
> sizes exceed Integer.MAX_SIZE and overall it would be a lot cleaner if
> you could pass segments directly to write and read functions. Is this
> being considered at all?
>
> Best Regards,
> Joe
More information about the panama-dev
mailing list