State.restore

void restore(Instance instance, LilvSetPortValueFunc setValue, void * userData, StateFlags flags, const(LV2_Feature *) * features = null) @nogc nothrow

Restore this state onto a plugin instance. Low overhead C callback version which is potentially real-time safe.

Parameters

instanceTarget instance (may be null if only port values are applied via setValue)
setValueCallback for port values (may be null)
userDataPassed to setValue
flagsLV2_State_Flags
featuresOptional null-terminated feature array for the plugin's restore
void restore(Instance instance, SetPortValueDelegate setValueDg, StateFlags flags, Feature[] features = null)

Restore this state onto a plugin instance. Uses a delegate instead of a C callback and dynamic array of Feature structures which may result in GC allocation and is NOT real-time safe.

Parameters

instanceTarget instance (may be null if only port values are applied via setValue)
setValueDgDelegate callback for port values (may be null)
flagsValues from StateFlags (IsPod, IsPortable, IsNative)
featuresOptional array of Feature structures for the plugin restore