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;
Ion non-negative integer number.