BigHugger
sk Skill · maxrave-dev

bitmask-event-wrapper

Wrap an integer flag set handed up from a lower layer in a single-field value class exposing contains and containsAny, so call sites stop writing raw bitwise tests against library constants. Covers keeping the wrapper allocation-free, why the flag constants must travel with it, the difference between "any of these bits" and "all of these bits", and what happens when a non-flag constant is passed to a flag test. Use…

installs 8w
0
30-day movement
starts with the next reading
Related entries
1
Connections
0
kotlinbash
Host repository
maxrave-dev/kotlin-footguns
Host stars
541