ByteBuf wrapping native memory address

29 views
Skip to first unread message

Tomasz Kowalczewski

unread,
Aug 4, 2016, 9:11:36 AM8/4/16
to Netty discussions
Hi,

I was unable to find a method for ByteBuf to wrap already allocated native memory pointer (e.g. using Unsafe.allocateMemory). Was addition of such method considered? 
My specific use case if when using Unsafe/DirectBuffers from Agrona and interfacing with Aeron. At some point, I want to pass data to Netty based client.

Regards,
Tomasz Kowalczewski

Norman Maurer

unread,
Aug 4, 2016, 9:12:55 AM8/4/16
to ne...@googlegroups.com
We not have such a method yet. That said I think we could add it.

Want to open an issue or even doing a PR ? This should go into Unpooled I think :)

--
You received this message because you are subscribed to the Google Groups "Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netty+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netty/4779d179-297b-4880-80aa-ad99cff11f13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tomasz Kowalczewski

unread,
Aug 5, 2016, 6:45:14 AM8/5/16
to Netty discussions
Sure, perfect work for my upcoming vacation ;) I have created issue for this: https://github.com/netty/netty/issues/5645
Reply all
Reply to author
Forward
0 new messages