The OpenD Programming Language

IonList

Ion List (array)

struct IonList {}

Members

Functions

empty
bool empty()
opApply
int opApply(int delegate(scope IonDescribedValue value) @(safe) pure @(nogc) dg)
int opApply(int delegate(scope IonDescribedValue value) @(safe) @(nogc) dg)
int opApply(int delegate(scope IonDescribedValue value) @(safe) pure dg)
int opApply(int delegate(scope IonDescribedValue value) @(safe) dg)
int opApply(int delegate(scope IonDescribedValue value) @(system) pure @(nogc) dg)
int opApply(int delegate(scope IonDescribedValue value) @(system) @(nogc) dg)
int opApply(int delegate(scope IonDescribedValue value) @(system) pure dg)
int opApply(int delegate(scope IonDescribedValue value) @(system) dg)
opApply
int opApply(int delegate(IonErrorCode error, scope IonDescribedValue value) @(safe) pure nothrow @(nogc) dg)
int opApply(int delegate(IonErrorCode error, scope IonDescribedValue value) @(safe) nothrow @(nogc) dg)
int opApply(int delegate(IonErrorCode error, scope IonDescribedValue value) @(safe) pure @(nogc) dg)
int opApply(int delegate(IonErrorCode error, scope IonDescribedValue value) @(safe) pure nothrow dg)
int opApply(int delegate(IonErrorCode error, scope IonDescribedValue value) @(safe) @(nogc) dg)
int opApply(int delegate(IonErrorCode error, scope IonDescribedValue value) @(safe) pure dg)
int opApply(int delegate(IonErrorCode error, scope IonDescribedValue value) @(safe) nothrow dg)
int opApply(int delegate(IonErrorCode error, scope IonDescribedValue value) @(safe) dg)
int opApply(int delegate(IonErrorCode error, scope IonDescribedValue value) @(system) pure nothrow @(nogc) dg)
int opApply(int delegate(IonErrorCode error, scope IonDescribedValue value) @(system) nothrow @(nogc) dg)
int opApply(int delegate(IonErrorCode error, scope IonDescribedValue value) @(system) pure @(nogc) dg)
int opApply(int delegate(IonErrorCode error, scope IonDescribedValue value) @(system) pure nothrow dg)
int opApply(int delegate(IonErrorCode error, scope IonDescribedValue value) @(system) @(nogc) dg)
int opApply(int delegate(IonErrorCode error, scope IonDescribedValue value) @(system) pure dg)
int opApply(int delegate(IonErrorCode error, scope IonDescribedValue value) @(system) nothrow dg)
int opApply(int delegate(IonErrorCode error, scope IonDescribedValue value) @(system) dg)
opApply
int opApply(Dg dg)

For iteration with IonDescribedValue elements.

opApply
int opApply(Dg dg)

For iteration with IonErrorCode and IonDescribedValue pairs.

serialize
void serialize(S serializer)
walkLength
size_t walkLength()

Variables

data
const(ubyte)[] data;

Examples

// check parsing with NOP padding:
// [NOP, int, NOP, double, NOP]
auto list = IonValue([0xbe, 0x91, 0x00, 0x00, 0x21, 0x0c, 0x00, 0x00, 0x48, 0x43, 0x0c, 0x6b, 0xf5, 0x26, 0x34, 0x00, 0x00, 0x00, 0x00])
    .describe.get!IonList;
size_t i;
foreach (elem; list)
{
    if (i == 0)
        assert(elem.get!IonUInt.get!int == 12);
    if (i == 1)
        assert(elem.get!IonFloat.get!double == 100e13);
    i++;
}
assert(i == 2);

Meta