The OpenD Programming Language

deserializeValueImpl

Deserialize enum value.

Examples

import mir.ion.value;
import mir.ion.exception;
enum E {a, b, c}

// from ion string
auto data = IonValue([0x81, 'b']).describe;
E value;

assert(deserializeValueImpl(data, value) == IonErrorCode.none);
assert(value == E.b);

Meta