isBitSet

Checks whether the bit at index is set in this Byte

Return

true if the bit is set, false otherwise.

Parameters

index

the index of the bit to check.


Checks whether the bit at index is set in this ByteArray

Return

true if the bit is set, false otherwise.

Parameters

index

the index of the bit to check.

Throws

If the index is out of bounds of this array, except in Kotlin/JS where the behavior is unspecified.


Checks whether the bit at index is set in this Int24

Return

true if the bit is set, false otherwise.

Parameters

index

the index of the bit to check.


fun Int.isBitSet(index: Number): Boolean

Checks whether the bit at index is set in this Int

Return

true if the bit is set, false otherwise.

Parameters

index

the index of the bit to check.


Checks whether the bit at index is set in this Long

Return

true if the bit is set, false otherwise.

Parameters

index

the index of the bit to check.


Checks whether the bit at index is set in this Short

Return

true if the bit is set, false otherwise.

Parameters

index

the index of the bit to check.


Checks whether the bit at index is set in this UByte

Return

true if the bit is set, false otherwise.

Parameters

index

the index of the bit to check.


Checks whether the bit at index is set in this UInt24

Return

true if the bit is set, false otherwise.

Parameters

index

the index of the bit to check.


Checks whether the bit at index is set in this UInt

Return

true if the bit is set, false otherwise.

Parameters

index

the index of the bit to check.


Checks whether the bit at index is set in this ULong

Return

true if the bit is set, false otherwise.

Parameters

index

the index of the bit to check.


Checks whether the bit at index is set in this UShort

Return

true if the bit is set, false otherwise.

Parameters

index

the index of the bit to check.