serialize


Description:

[ CCode ( array_length_pos = 0.1 , array_length_type = "guint" ) ]
public uint8[] serialize ()

Serializes a Pixdata structure into a byte stream.

Note:

Use Resource instead.

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

Parameters:

this

a valid Pixdata structure to serialize.

stream_length_p

location to store the resulting stream length in.

Returns:

A newly-allocated string containing the serialized Pixdata structure.