maskNibble

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

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

Examples

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

Meta