pike.git
/
src
/
builtin.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/builtin.cmod:4756:
*! Dispatch function for serialization. *! *! @param o *! Object to serialize. Always a context of the current object. *! *! @param serializer *! Function to typically be called once for every variable *! in the inheriting class. *! *! This function calls @[_serialize_variable()] once
-
*! for every variable in the inheriting class.
+
*! for every variable in the inheriting class
, which
+
*! in turn will call @[serializer] with the arguments:
+
*! @dl
+
*! @item Argument 1
+
*! The value of the variable
.
+
*! @item Argument 2
+
*! The name of the variable.
+
*! @item Argument 3
+
*! The declared type of the variable.
+
*! @enddl
*! *! @note *! The symbols will be listed in the order they were defined *! in the class. *! *! @note *! This function is typically called via @[Serializer.serialize()].
-
+
*!
+
*! @seealso
+
*! @[Serializer.serialize()], @[_serialize_variable()],
+
*! @[_deserialize()]
*/ PIKEFUN void _serialize(object o, function(mixed, string, type:void) serializer) flags ID_PROTECTED; rawtype tFunc(tObj tFunc(tMix tStr tType(tMix), tVoid), tVoid); { if (o != Pike_fp->current_object) { SIMPLE_BAD_ARG_ERROR("_serialize", 1, "this"); } low_serialize(SUBTYPEOF(Pike_sp[-args]), serializer, 0,
pike.git/src/builtin.cmod:4847:
*! Selects one of the object types in case of a complex *! @[symbol_type]. The selected type is NOT deterministic *! in case there are multiple choices that satisfy the above. *! @item *! Is likely to throw errors if @tt{p()@} requires arguments. *! @endul *! *! These issues can all be solved by overloading this function. *! *! @seealso
-
*! @[_deserialize()], @[_serialize_variable()]
+
*! @[_deserialize()], @[_serialize_variable()]
, @[Builtin.Setter]
*/ PIKEFUN void _deserialize_variable(function(function(mixed:void), string, type: void) deserializer, function(mixed:void) setter, string symbol, type symbol_type) flags ID_PROTECTED; rawtype tFunc(tFunc(tFunc(tMix, tVoid) tStr tType(tMix), tVoid) tFunc(tMix, tVoid) tStr tType(tMix), tVoid); {
pike.git/src/builtin.cmod:4889:
*! Dispatch function for deserialization. *! *! @param o *! Object to serialize. Always a context of the current object. *! *! @param deserializer *! Function to typically be called once for every variable *! in the inheriting class. *! *! This function calls @[_deserialize_variable()] once
-
*! for every variable in the inheriting class.
+
*! for every variable in the inheriting class
, which
+
*! in turn will call @[deserializer] with the arguments:
+
*! @dl
+
*! @item Argument 1
+
*! The setter for the variable
.
+
*! @item Argument 2
+
*! The name of the variable.
+
*! @item Argument 3
+
*! The declared type of the variable.
+
*! @enddl
*! *! @note *! The symbols will be listed in the order they were defined *! in the class. *! *! @note *! This function is typically called via @[Serializer.deserialize()].
-
+
*!
+
*! @seealso
+
*! @[Serializer.deserialize()], @[_deserialize_variable()],
+
*! @[_serialize()], @[Builtin.Setter]
*/ PIKEFUN void _deserialize(object o, function(function(mixed:void), string, type: void) deserializer) flags ID_PROTECTED; rawtype tFunc(tObj tFunc(tFunc(tMix, tVoid) tStr tType(tMix), tVoid), tVoid); { if (o != Pike_fp->current_object) { SIMPLE_BAD_ARG_ERROR("_serialize", 1, "this"); }