Loom and reading/writing of data
Alan Bateman
Alan.Bateman at oracle.com
Thu Nov 21 13:46:24 UTC 2019
On 21/11/2019 12:09, Kasper Nielsen wrote:
> Wouldn't it possible to do something similar to what Panama is doing with
> memory access API?
>
> For example, for network IO you rarely need the random access features that
> ByteBuffer provides, sequential access is almost always enough. If we
> drop random
> access support, we only need to know about the next element to write and/or the
> next element to read.
>
MemorySegment::asByteBuffer and MemorySegment.ofByteBuffer is the
current proposal for interop.
-Alan
More information about the loom-dev
mailing list