const b = StaticBitArray!16(([0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1])); const s1 = format("%s", b); version (none) assert(s1 == "[0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1]"); /+ TODO: enable +/ version (none) const s2 = format("%b", b); /+ TODO: enable +/ version (none) assert(s2 == "00001111_00001111"); /+ TODO: enable +/
Return a string representation of this StaticBitArray.
Two format specifiers are supported:
separated with an underscore.