Serialize state of the plugin, to restore with restoreState.
null in case of error, else a state chunk. The lifetime of this returned chunk is the same as the IPluginHost, or until another call to saveState is done.
See Implementation
Serialize state of the plugin, to restore with restoreState.