NetAddr.ntoa
You're seeing just the function
ntoa
, go back to NetAddr module for more information.
Specs
ntoa(non_neg_integer(), pos_integer()) :: binary()
Converts decimal
to an address.
Examples
iex> NetAddr.ntoa 3221225985, 4
<<192, 0, 2, 1>>
iex> NetAddr.ntoa 338288524986991696549538495105230488577, 16
<<254, 128, 0, 0, 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 1>>
iex> NetAddr.ntoa 4328719365, 5
<<1, 2, 3, 4, 5>>