The OpenD Programming Language

IonAnnotationWrapper

Ion Annotation Wrapper

Members

Functions

serialize
void serialize(S serializer)

Variables

annotations
IonAnnotations annotations;
value
IonDescribedValue value;

Examples

// null.struct

auto uw = IonValue([0xE7, 0x82, 0x8A, 0x8B, 0x53, 0xC3, 0x04, 0x65])
    .describe
    .get!IonAnnotationWrapper;
assert(uw.value.get!IonDecimal.get!double == 1.125);

size_t i;
foreach (symbolID; uw.annotations)
{
    if (i == 0)
    {
        assert(symbolID == 10);
    }
    if (i == 1)
    {
        assert(symbolID == 11);
    }
    i++;
}
assert(i == 2);

Meta