Module arrow_buffer::bit_util
source · Expand description
Utils for working with bits
Functions
- Returns the ceil of
value
/divisor
- Returns whether bit at position
i
indata
is set or not - Returns whether bit at position
i
indata
is set or not. - Returns the nearest number that is
>=
thannum
and is a multiple of 64 - Returns the nearest multiple of
factor
that is>=
thannum
. Herefactor
must be a power of 2. - Sets bit at position
i
fordata
to 1 - Sets bit at position
i
fordata
- Sets bit at position
i
fordata
to 0 - Sets bit at position
i
fordata
to 0