NetAddr.aton

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

Specs

aton(binary()) :: non_neg_integer()

Converts address to a decimal.

Examples

iex> NetAddr.aton <<192,0,2,1>>
3221225985

iex> NetAddr.aton <<254, 128, 0, 0, 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 1>>
338288524986991696549538495105230488577

iex> NetAddr.aton(<<1,2,3,4,5>>)
4328719365