Meta.deserialize

gst.meta.Meta deserialize(gst.buffer.Buffer buffer, ubyte[] data, out uint consumed)

Recreate a #GstMeta from serialized data returned by [gst.meta.Meta.serialize] and add it to buffer.

Note that the meta must have been previously registered by calling one of gst_*_meta_get_info () functions.

consumed is set to the number of bytes that can be skipped from data to find the next meta serialization, if any. In case of parsing error that does not allow to determine that size, consumed is set to 0.

Parameters

buffera #GstBuffer
dataserialization data obtained from [gst.meta.Meta.serialize]
consumedtotal size used by this meta, could be less than size

Returns

the metadata owned by buffer, or null.