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.lob

struct IonClob;
Ion Clob
Values of type clob are encoded as a sequence of octets that should be interpreted as text with an unknown encoding (and thus opaque to the application).
Examples:
import  mir.ion.value;
// null.string
assert(IonValue([0x9F]).describe.get!IonClob == null);
// empty string
assert(IonValue([0x90]).describe.get!IonClob != null);
assert(IonValue([0x90]).describe.get!IonClob.data == "");

assert(IonValue([0x95, 0x63, 0x6f, 0x76, 0x69, 0x64]).describe.get!IonClob.data == "covid");
const(char)[] data;
const pure nothrow @nogc @safe bool opEquals(typeof(null));
Returns:
true if the clob is null.clob.
struct IonBlob;
Ion Blob
This is a sequence of octets with no interpretation (and thus opaque to the application).
Examples:
import  mir.ion.value;
// null.string
assert(IonValue([0xAF]).describe.get!IonBlob == null);
// empty string
assert(IonValue([0xA0]).describe.get!IonBlob != null);
assert(IonValue([0xA0]).describe.get!IonBlob.data == "");

assert(IonValue([0xA5, 0x63, 0x6f, 0x76, 0x69, 0x64]).describe.get!IonBlob.data == "covid");
const(ubyte)[] data;
const pure nothrow @nogc @safe bool opEquals(typeof(null));
Returns:
true if the blob is null.blob.