groostav
08/18/2023, 6:14 PMstdlib
cross-platform implementation of BitSet
? That is, something that lets me do common bit maniuplations but without a fixed size?
The java.util.BitSet
has all sorts of ugly java (read: old) conventions around cloning, blyeh, i dont like it.hho
08/18/2023, 6:24 PMgroostav
08/18/2023, 6:26 PMgroostav
08/18/2023, 6:26 PMBitSet.andNot(r: BitSet): BitSet
is the correct signatureilya.gorbunov
08/19/2023, 12:23 PMsolonovamax
08/28/2023, 8:08 PMBitSet
, however it does not contain methods to allow you to perform binary operations on the bitset, only set
and get
. However, if you wish to add those, you could always PR it to them.
do note: the documentation for the korlibs libraries are rather lacking.
https://docs.korge.org/kds/sets/#BitSet
https://dokka.korge.org/kds/com.soywiz.kds/-bit-set/index.html