parse_external


Description:

public static Object parse_external (Variant data)

Reconstruct a Serializable from Variant data.

For this function to work you need to register a parser with register_parser. Any native Dee class will do so automatically.

This method only works on data created with externalize and not with data from serialize.

Since a SerializableParseFunc is not allowed to fail - by contract - it can be guaranteed that this function only returns null in case there is no known parser for the Type or Variant signature of data.

Parameters:

data

The Variant data to parse

Returns:

A newly constructed Object build from data or null in case no parser has been registered for the given Type or variant signature. Free with unref.