Method Decoder()->decode_object()

class Decoder

Method decode_object

array|void decode_object(object o, string|array data)

Description

Called by decode_value() to restore the state of o, encoded by the corresponding Encoder()->encode_object() call.

Parameter o

The object being decoded. It may not yet be fully initialized; in particular its lfun::create() (if any) has not been called yet.

Parameter data

The value returned by the corresponding Encoder()->encode_object() call.

Returns

If o has an lfun::create() and this function returns an array, that array's elements are used as the arguments to o's lfun::create().

See also

Encoder()->encode_object()