UInt.this

  1. this(size_t[N] data)
  2. this(UInt!argSize arg)
  3. this(ulong[data.length / 2] data)
  4. this(ulong data)
  5. this(uint data)
  6. this(const(C)[] str)
    struct UInt(size_t size)
    @safe pure @nogc
    this
    (
    C
    )
    (
    scope const(C)[] str
    )
    if (
    isSomeChar!C
    )
    if (
    size % (size_t.sizeof * 8) == 0 &&
    size >= (size_t.sizeof * 8)
    )

Examples

import mir.math.constant: PI;
UInt!256 integer = "34010447314490204552169750449563978034784726557588085989975288830070948234680"; // constructor
assert(integer == UInt!256.fromHexString("4b313b23aa560e1b0985f89cbe6df5460860e39a64ba92b4abdd3ee77e4e05b8"));

Meta