[zeromq-dev] ØMQ VSM data alignment

Matt Weinstein mattweinstein at gmail.com
Wed Aug 4 16:11:53 CEST 2010


Folks,

Sorry if this has been covered before.

I've been using zmq to transport raw structures, and I've noticed that  
zeromq apparently does not provide appropriate alignment for messages  
in VSMs, and maybe for larger messages as well if you're using the  
front of the content buffer (I haven't looked :-( )

Here are the offsets:

0x00    void *content;
0x08    unsigned char flags;
0x09    unsigned char vsm_size;
0x0a    unsigned char vsm_data [ZMQ_MAX_VSM_SIZE];

Shouldn't vsm_data be padded to 0x10 on 64 bit architectures (and  
maybe others)?

RSVP,

Thanks,

Matt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100804/23646010/attachment.htm>


More information about the zeromq-dev mailing list