Marshalling bytewise data with Glib bindings
thiago at kde.org
Sun May 20 22:01:18 PDT 2007
Matt Hoosier wrote:
>Is there a suitable datatype to use as the contents of a GValue, which
>the dbus-glib bindings will understand natively? Shoehorning this
>stuff into GValue whose type is G_TYPE_STRING sounds bad; the first 0
>byte will cause the bindings to think that the "string" is finished,
>and UTF-8 enforcement will probably choke on this method anyway.
ARRAY of BYTE should do it.
STRING should be used only for properly-encoded UTF-8 data. NULs are
allowed, but arbitrary binary data isn't.
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20070521/c558a7ce/attachment.pgp
More information about the dbus