BigUIntView.opCast

  1. T opCast()
  2. T opCast()
  3. T opCast()
    struct BigUIntView(W, WordEndian endian = TargetEndian)
    const scope
    T
    opCast
    (
    T
    bool nonZero = false
    )
    ()
    if (
    isIntegral!T &&
    isUnsigned!T
    &&
    isMutable!T
    )
    if (
    __traits(isUnsigned, W)
    )
  4. BigUIntView!V opCast()

Examples

auto view = BigUIntView!ulong.fromHexString("afbbfae3cd0aff2714a1de7022b0029d");
assert(cast(ulong) view == 0x14a1de7022b0029d);
assert(cast(uint) view == 0x22b0029d);
assert(cast(ubyte) view == 0x9d);

Meta