Pixdata.deserialize

Deserializes (reconstruct) a gdkpixbuf.Pixdata structure from a byte stream. The byte stream consists of a straightforward writeout of the gdkpixbuf.Pixdata fields in network byte order, plus the pixel_data bytes the structure points to. The pixdata contents are reconstructed byte by byte and are checked for validity. This function may fail with GDK_PIXBUF_ERROR_CORRUPT_IMAGE or GDK_PIXBUF_ERROR_UNKNOWN_TYPE.

More...
class Pixdata
bool
deserialize
(
ubyte[] stream
)

Parameters

stream ubyte[]

stream of bytes containing a serialized gdkpixbuf.Pixdata structure.

Return Value

Type: bool

Upon successful deserialization TRUE is returned, FALSE otherwise.

Detailed Description

Deprecated: Use gio.Resource instead.

Throws

GException on failure.