has

fun has(flags: Long, flag: Long): Boolean

True if flag (a single-bit mask) is set in flags.