read_anon_array


Description:

public virtual ArrayList<Object> read_anon_array (Stream ctx, string prop_name, uint8 type_byte, Type element_type) throws Error

Decode a homogeneous object-array body whose wire header is anonymous (e.g. AUTO JSON GLib.Object) but whose elements decode as element_type.

Consumes Stream.read_gtype and the element count on ctx, then one property stream per element. Caller casts the returned list to the concrete element collection type.

Parameters:

ctx

active bin session

prop_name

property name for error context

type_byte

wire type byte(GLib.Type fundamental; bit 7 = array)

element_type

class to instantiate for each element body

Returns:

decoded elements as GLib.Object