Method lfun::_serialize()
- Method _serialize
void
_serialize(object
o
,function
(mixed
,string
,type
:void
)serializer
)- Description
Dispatch function for
Serializer.serialize()
.- Parameter
o
Object to serialize. Always a context of the current object.
- Parameter
serializer
Function to be called once for every variable to serialize.
The
serializer
function expects to be called with three arguments:value - The value of the symbol.
symbol - The symbol name.
symbol_type - The type of the symbol.
- Note
A default implementation of lfun::_serialize() and lfun::_deserialize() is available in
Serializer.Serializable
.- See also
lfun::_deserialize(),
Serializer.serialize()
,Serializer.Serializable()->_serialize()