The OpenD Programming Language

IonUInt

Ion non-negative integer number.

Members

Functions

get
IonErrorCode get(T value)
get
T get()
get
IonErrorCode get(T value)
getErrorCode
IonErrorCode getErrorCode()

Variables

data
const(ubyte)[] data;

Examples

import mir.test;
assert(IonValue([0x2F]).describe.get!IonNull == IonNull(IonTypeCode.uInt));
assert(IonValue([0x21, 0x07]).describe.get!IonUInt.get!int == 7);

int v;
assert(IonValue([0x22, 0x01, 0x04]).describe.get!IonUInt.get(v) == IonErrorCode.none);
v.should == 260;

Meta