[zeromq-dev] zmq_recvmsg jni

Trevor Bernard trevor.bernard at gmail.com
Thu Oct 3 12:31:21 CEST 2013

> Still curious. Does it mean that using DirectByteBuffer only makes
> sense if one uses ZMQ+Disruptor?

Not at all. That's just one example of how I do it.

> -- what we win here

There is no way (that I know of) to pass a Java byte array to the
underlying c/c++ function without a copy. What the DirectByteBuffer
allows you to do is get the pointer to the memory region it references
and you can pass this along to zmq_recv eliminating the need to do a
copy between boundaries.

More information about the zeromq-dev mailing list