Add flags to a registry

bf_grow(flags, name = NULL, desc = NULL, na_val = NULL, pos = NULL, registry)

Arguments

flags

function(.)
a function that returns a vector that shall be stored as bit.

name

character(.)
the internal name of the bit flag(s).

desc

character(.)
the description of the bit flag(s).

na_val

numeric(.) | character(.) | logical(1)
which value NAs in the output of flags should have in the registry.

pos

integerish(1)
the position in the bitfield that should be set.

registry

registry(1)
the registry in which the bit flag(s) should be stored.