For the complete documentation index, see llms.txt. This page is also available as Markdown.

BitMaskSet

Performs a bitwise mask set operation.

Method Signature

BitMaskSet(number=[long], mask=[long], start=[integer], length=[integer])

Arguments

Argument
Type
Required
Description
Default

number

long

true

64-bit signed integer value for the bitwise mask set.

mask

long

true

64-bit signed integer value for the mask.

start

integer

true

Start bit for the set mask (Integer in the range 0-31, inclusive).

length

integer

true

Length of bits in the set mask (Integer in the range 0-31, inclusive).

Examples

Bitwise Mask Set

Performs masking operation on each of the corresponding bits

Run Example

bitMaskSet( 6, 1, 0, 1 );

Result: 7

Using non zero start parameter

Bit shift the mask 2 places

Run Example

Result: 14

Using non zero mask start and length parameters

Run Example

Result: 12

Additional Examples

Run Example

Last updated

Was this helpful?