[Qt-interest] adding zero to QByteArray

Thiago Macieira thiago.macieira at trolltech.com
Thu May 28 17:06:12 CEST 2009


Em Quinta-feira 28 Maio 2009, às 13:15:49, Jesús Fernández Prieto escreveu:
> Try this:
> datagram.push_front(static_cast<char>(0x0));

datagram.prepend('\0');

-- 
Thiago Macieira - thiago.macieira (AT) nokia.com
  Senior Product Manager - Nokia, Qt Software
     Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090528/cc3a0180/attachment.bin 


More information about the Qt-interest-old mailing list