setFlag

fun setFlag(flag: T): BitField<T>(source)

Sets the specified flag in this bit field. Returns a new BitField with the flag set.

Return

New BitField with the flag set

Parameters

flag

The flag to set


fun setFlag(other: BitField<T>): BitField<T>(source)

Sets the specified flag from another BitField.

Return

New BitField with the flag(s) set

Parameters

other

BitField containing the flag(s) to set