maskNibble

Compile-time mask() partially specialized for nibble-masking.

  1. auto maskNibble(const T value)
    maskNibble
    nothrow @safe pure
    (
    size_t index
    T
    )
    (
    const T value
    )
  2. auto maskNibble(const T value, size_t index)

Examples

static assert(maskNibble!1(0x12345678) == 0x12345608);

Meta