Re: gdk_pixdata_deserialize byte order problem



Tim Janik schrieb:
> On Thu, 17 May 2007, Joern P. Meier wrote:
>>  *istream++ = g_htonl (GDK_PIXBUF_MAGIC_NUMBER);
> 
> this is supposed to write out:
>     /* Pixbuf magic (0x47646b50) */
>     "GdkP"
> i.e.:
>     stream[0] = 'G'; stream[1] = 'd'; stream[2] = 'k'; stream[3] = 'P';
> the above is the "network byte order" and should be generated on little
> and big endian machines.

You are right, of course. I have the bytes in the wrong order in
gtkbuiltincache.h and this is probably because I used glibconfig.h
installed from an Intel Mac for compiling.

Thanks for the comments!

Jörn




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]