Function updateBit

  • Updates the bit at the given position to the given value.

    Parameters

    • number: number

      the number to update

    • bitPosition: number

      the bit position to update from the least significant bit (0) to most significant bit (31)

    • bitValue: number

      0 or 1

    Returns number

Generated using TypeDoc