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 scope @safe int opApply(scope int delegate(const(char[])[] symbolTable, IonDescribedValue value) pure @nogc @safe dg);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

const scope @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.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}`);