bitset v0.2.1 Bitset View Source
Documentation for Bitset. the fixed-size N bits
Link to this section Summary
Functions
the number of bits set to true
toggle all bits
toggle the bit at the position
sets all bits to false
sets the bit at the position to false
sets all bits to true
sets the bit at the position to bit value
to_binary(bitset)
deprecated
convert to binary format
return Bitset data binary
return string representation of the bitset
Link to this section Types
Link to this section Functions
Link to this function
all?(bitset) View Source
Link to this function
any?(bitset) View Source
Link to this function
count(bitset) View Source
the number of bits set to true
Link to this function
flip(bitset) View Source
toggle all bits
Link to this function
flip(bitset, pos) View Source
toggle the bit at the position
Link to this function
new(size)
View Source
new(size)
View Source
new(bitstring() | non_neg_integer()) :: Bitset.t()
new(bitstring() | non_neg_integer()) :: Bitset.t()
Link to this function
new(arg, size) View Source
Link to this function
none?(bitset) View Source
Link to this function
reset(bitset) View Source
sets all bits to false
Link to this function
reset(bitset, pos) View Source
sets the bit at the position to false
Link to this function
reverse(bitset) View Source
Link to this function
set(bitset) View Source
sets all bits to true
Link to this function
set(bitset, pos, bit \\ 1) View Source
sets the bit at the position to bit value
Link to this function
size(bitset) View Source
Link to this function
test?(bitset, pos) View Source
Link to this function
to_binary(bitset) View Source
This function is deprecated. Use to_bytes/1 instead.
convert to binary format
Link to this function
to_bytes(bitset) View Source (since 0.2.1)
Link to this function
to_data(bitset) View Source
return Bitset data binary
Link to this function
to_string(bitset, acc \\ <<>>) View Source
return string representation of the bitset