State.setMetadata

int setMetadata(uint key, const(void)[] value, uint type, StateFlags flags) @nogc nothrow

Set a single metadata property on this state.

Parameters

keyURID key
valueValue bytes
typeURID type of value
flagsValues from StateFlags (IsPod, IsPortable, IsNative)

Returns

0 on success