Report a bug
If you spot a problem with this page, click here to create a GitHub issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

mir.ion.stream

struct IonValueStream;
Ion Value Stream

Note this implementation of value stream doesn't support shared symbol tables.

const(ubyte)[] data;
data view.
const pure @nogc @safe int opApply(scope int delegate(const(char[])[] symbolTable, IonDescribedValue value) pure @nogc @safe dg);

const @nogc @trusted int opApply(scope int delegate(const(char[])[] symbolTable, IonDescribedValue value) @nogc @safe dg);

const pure @trusted int opApply(scope int delegate(const(char[])[] symbolTable, IonDescribedValue value) pure @safe dg);

const @trusted int opApply(scope int delegate(const(char[])[] symbolTable, IonDescribedValue value) @safe dg);

const pure @nogc @system int opApply(scope int delegate(const(char[])[] symbolTable, IonDescribedValue value) pure @nogc @system dg);

const @nogc @system int opApply(scope int delegate(const(char[])[] symbolTable, IonDescribedValue value) @nogc @system dg);

const pure @system int opApply(scope int delegate(const(char[])[] symbolTable, IonDescribedValue value) pure @system dg);

const @system int opApply(scope int delegate(const(char[])[] symbolTable, IonDescribedValue value) @system dg);
const pure nothrow @nogc @trusted int opApply(scope int delegate(IonErrorCode error, const(char[])[] symbolTable, IonDescribedValue value) pure nothrow @nogc @safe dg);

const nothrow @nogc @trusted int opApply(scope int delegate(IonErrorCode error, const(char[])[] symbolTable, IonDescribedValue value) nothrow @nogc @safe dg);

const pure @nogc @trusted int opApply(scope int delegate(IonErrorCode error, const(char[])[] symbolTable, IonDescribedValue value) pure @nogc @safe dg);

const pure nothrow @trusted int opApply(scope int delegate(IonErrorCode error, const(char[])[] symbolTable, IonDescribedValue value) pure nothrow @safe dg);

const @nogc @trusted int opApply(scope int delegate(IonErrorCode error, const(char[])[] symbolTable, IonDescribedValue value) @nogc @safe dg);

const pure @trusted int opApply(scope int delegate(IonErrorCode error, const(char[])[] symbolTable, IonDescribedValue value) pure @safe dg);

const nothrow @trusted int opApply(scope int delegate(IonErrorCode error, const(char[])[] symbolTable, IonDescribedValue value) nothrow @safe dg);

const @trusted int opApply(scope int delegate(IonErrorCode error, const(char[])[] symbolTable, IonDescribedValue value) @safe dg);

const pure nothrow @nogc @system int opApply(scope int delegate(IonErrorCode error, const(char[])[] symbolTable, IonDescribedValue value) pure nothrow @nogc @system dg);

const nothrow @nogc @system int opApply(scope int delegate(IonErrorCode error, const(char[])[] symbolTable, IonDescribedValue value) nothrow @nogc @system dg);

const pure @nogc @system int opApply(scope int delegate(IonErrorCode error, const(char[])[] symbolTable, IonDescribedValue value) pure @nogc @system dg);

const pure nothrow @system int opApply(scope int delegate(IonErrorCode error, const(char[])[] symbolTable, IonDescribedValue value) pure nothrow @system dg);

const @nogc @system int opApply(scope int delegate(IonErrorCode error, const(char[])[] symbolTable, IonDescribedValue value) @nogc @system dg);

const pure @system int opApply(scope int delegate(IonErrorCode error, const(char[])[] symbolTable, IonDescribedValue value) pure @system dg);

const nothrow @system int opApply(scope int delegate(IonErrorCode error, const(char[])[] symbolTable, IonDescribedValue value) nothrow @system dg);

const @system int opApply(scope int delegate(IonErrorCode error, const(char[])[] symbolTable, IonDescribedValue value) @system dg);
const void serialize(S)(ref S serializer);
Parameters:
S serializer serializer
Examples:
import mir.ion.ser.json;
const ubyte[] data = [0xe0, 0x01, 0x00, 0xea, 0xe9, 0x81, 0x83, 0xd6, 0x87, 0xb4, 0x81, 0x61, 0x81, 0x62, 0xd6, 0x8a, 0x21, 0x01, 0x8b, 0x21, 0x02];
auto json = data.IonValueStream.serializeJson;
assert(json == `{"a":1,"b":2}`);