[zeromq-dev] Zero copy

Douglas Petican dpetican at gmail.com
Thu Jun 16 23:24:08 CEST 2016


Yes.  Thx.

<-Douglas Petican->

On 2016-06-16 4:37 AM, Arnaud Loonstra wrote:
> On 2016-06-16 03:18, Douglas Petican wrote:
>> The faq makes reference to zero copy, but I can't find it documented
>> anywhere.
>
> Is this what you're looking for?
>
> http://zeromq.org/blog:zero-copy
>
> http://api.zeromq.org/4-0:zmq-msg-init-data
>
> """
> The zmq_msg_init_data() function shall initialise the message object 
> referenced by msg to represent the content referenced by the buffer 
> located at address data, size bytes long. No copy of data shall be 
> performed and ØMQ shall take ownership of the supplied buffer.
>
> If provided, the deallocation function ffn shall be called once the 
> data buffer is no longer required by ØMQ, with the data and hint 
> arguments supplied to zmq_msg_init_data().
> """
>
> Rg,
>
> Arnaud
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev




More information about the zeromq-dev mailing list