gloomex v0.2.0 Gloomex.BitArray

This module implements a bit array using Erlang's :array module.

Link to this section Summary

Functions

Amount of bits used by the atomic array

Returns true if the bitarray has the ith bit set, otherwise returns false.

Returns a new bitarray of size n.

Updates a bitarray

Link to this section Types

Link to this section Functions

Amount of bits used by the atomic array

Specs

get(t(), non_neg_integer()) :: boolean()

Returns true if the bitarray has the ith bit set, otherwise returns false.

Specs

new(pos_integer()) :: t()

Returns a new bitarray of size n.

Specs

set(t(), non_neg_integer()) :: t()

Updates a bitarray