UInt.toString

  1. immutable(C)[] toString()
  2. void toString(W w)
    struct UInt(size_t size)
    const
    void
    toString
    (
    C = char
    W
    )
    (
    scope ref W w
    )
    if (
    isSomeChar!C &&
    isMutable!C
    )
    if (
    size % (size_t.sizeof * 8) == 0 &&
    size >= (size_t.sizeof * 8)
    )

Examples

Check @nogc toString impl

import mir.format: stringBuf;
auto str = "34010447314490204552169750449563978034784726557588085989975288830070948234680";
auto integer = UInt!256(str);
stringBuf buffer;
buffer << integer;
assert(buffer.data == str, buffer.data);

Meta