devkit.core
Devkit_core.UnsafeBitSet
devkit
type t
val create : int -> t
Create an empty bitset with an initial size (in number of bits).
val copy : t -> t
Copy a bitset : further modifications of first one will not affect the copy.
val set : t -> int -> unit
set s n sets the nth-bit in the bitset s to true.
set s n
s
val unset : t -> int -> unit
unset s n sets the nth-bit in the bitset s to false.
unset s n
val put : t -> bool -> int -> unit
put s v n sets the nth-bit in the bitset s to v.
put s v n
v
val toggle : t -> int -> unit
toggle s n changes the nth-bit value in the bitset s.
toggle s n
val is_set : t -> int -> bool
is_set s n returns true if nth-bit in the bitset s is set, or false otherwise.
is_set s n