Utils
mask
function mask(_value, _bits): bigint
Mask value
with a bitmask of bits
ones.
Parameters
Parameter | Type | Description |
---|---|---|
_value | BigNumberish | The value to mask. |
_bits | Numeric | The number of bits to mask. |
Returns
bigint
The masked value.
function mask(_value, _bits): bigint
Mask value
with a bitmask of bits
ones.
Parameter | Type | Description |
---|---|---|
_value | BigNumberish | The value to mask. |
_bits | Numeric | The number of bits to mask. |
bigint
The masked value.