parse_object


Description:

public Object parse_object (Type object_type = INVALID, Type expected_type = INVALID) throws Error

Read one object body after its GLib.Type.OBJECT type byte.

When object_type is set (homogeneous object arrays), skip read_gtype and decode the property stream for that class. When wire GLib.Object is anonymous, decode as expected_type when that type implements Serializable.

When Client.live_handles is on and the type is not Serializable, the body is a uint64 handle then TOKEN_END (consumed before GLib.Object.new so construct setters may nest sync RPC). Decode reuses Client.proxies when the lease is already known; otherwise constructs via GLib.Object.new with rpc-lid ( Live.Interface) and stores it.

Parameters:

object_type

element class when already read from an array header

expected_type

GObject property type for anonymous nested objects