How do I use Java’s bitwise operators in Kotlin?
You have named functions for them. Directly from Kotlin docs Bitwise operations are represented by functions that can be called in infix form. They can be applied only to Int and Long. for example: val x = (1 shl 2) and 0x000FF000 Here is the complete list of bitwise operations: shl(bits) – signed shift left … Read more