UInt.signBit

  1. bool signBit()
  2. void signBit(bool value)
    struct UInt(size_t size)
    @property
    void
    signBit
    ()
    (
    bool value
    )
    if (
    size % (size_t.sizeof * 8) == 0 &&
    size >= (size_t.sizeof * 8)
    )

Examples

auto a = UInt!128.fromHexString("dfbbfae3cd0aff2714a1de7022b0029d");
assert(a.signBit);
a.signBit = false;
assert(a == UInt!128.fromHexString("5fbbfae3cd0aff2714a1de7022b0029d"));
assert(!a.signBit);
a.signBit = true;
assert(a == UInt!128.fromHexString("dfbbfae3cd0aff2714a1de7022b0029d"));

Meta