Method

GdkPixdata.Pixdata.serialize

Declaration [src]

guint8*
gdk_pixdata_serialize (
  const GdkPixdata* pixdata,
  guint* stream_length_p
)

Description [src]

Serializes a GdkPixdata structure into a byte stream. The byte stream consists of a straightforward writeout of the GdkPixdata fields in network byte order, plus the pixel_data bytes the structure points to.

Deprecated since:2.32

Use GResource instead.

Parameters

stream_length_p guint*
 

location to store the resulting stream length in.

 Direction: out
 The called function takes ownership of the data, and is responsible for freeing it

Return value

Returns: An array of guint8

A newly-allocated string containing the serialized GdkPixdata structure.

 The length of the array is in the stream_length_p argument
The caller of the function takes ownership of the data, and is responsible for freeing it