Generates serialization code for a list of parameters and the total length of the serialized array
Parameters
params: A list of (name, type) tuples to serialize
use_self_prefix: If true, parameters are accessed as self.$param_name (for struct members).
If false, parameters are accessed directly as $param_name (for function parameters).
Returns
A tuple containing:
Quoted code that serializes the parameters into an array named serialized_params
Quoted code that evaluates to the total length of the serialized array
Quoted code containing the name of the serialized array
Generates serialization code for a list of parameters and the total length of the serialized array
Parameters
params: A list of (name, type) tuples to serializeuse_self_prefix: If true, parameters are accessed asself.$param_name(for struct members). If false, parameters are accessed directly as$param_name(for function parameters).Returns
A tuple containing:
serialized_params