Skip to content

Bit Flags

hasFlag, withFlag and minusFlag extensions on Long, Int, Short, Byte, and their unsigned counterparts.

Supported platforms: Linux (x64), MingW (x64), macOS (x64), iOS (arm32, arm64 & x64), JS, JVM (including Android).

These extensions make dealing with bit flags easier.

These small inline extensions can be proven handy since bit flags are found in multiple places over the Android API, in low level stuff when you have to deal with raw bytes, and maybe in your own codebase too.

Download

implementation("com.louiscad.splitties:splitties-bitflags:3.0.0-beta01")