compose MemorySegments

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Fri Jun 11 11:07:48 UTC 2021


One thing I saw which is very similar to what you want is this:

https://netty.io/4.0/api/io/netty/buffer/CompositeByteBuf.html

Perhaps Chris Vest or some other folks in Netty can comment more on that 
API. Netty is also doing some exploratory work to validate use of memory 
segments within Netty itself [1].

Maurizio

[1] - https://github.com/netty/netty-incubator-buffer-api

On 11/06/2021 00:41, Douglas Surber wrote:
> As I understand them, no a mapped MemorySegment wouldn't work. The data is not in a file. It is in byte[]s. My code has to look at the bits as it gets them from the network to deal with metadata. Based on that it copies the data bits from the network buffer into byte[]s with no additional processing.
>
> Douglas
>
> On Jun 10, 2021, at 4:24 PM, panama-dev-request at openjdk.java.net<mailto:panama-dev-request at openjdk.java.net> wrote:
>
> Would a mapped MemorySegment work for you?
>


More information about the panama-dev mailing list