Kernel.bit_size

You're seeing just the function bit_size, go back to Kernel module for more information.

Specs

bit_size(bitstring()) :: non_neg_integer()

Returns an integer which is the size in bits of bitstring.

Allowed in guard tests. Inlined by the compiler.

Examples

iex> bit_size(<<433::16, 3::3>>)
19

iex> bit_size(<<1, 2, 3>>)
24