UInt.fromBinaryString

Parses a binary string into a UInt of given size, optionally allowing underscores when `allowUnderscores` is true.

struct UInt(size_t size)
static
UInt!size
fromBinaryString
(
bool allowUnderscores = false
)
(
scope const(char)[] str
)
if (
size % (size_t.sizeof * 8) == 0 &&
size >= size_t.sizeof * 8
)