NetAddr.address_length
You're seeing just the function
address_length
, go back to NetAddr module for more information.
Specs
address_length(t()) :: non_neg_integer()
Return the address length of netaddr
.
Examples
iex> NetAddr.address_length NetAddr.ip("192.0.2.1/24")
24
Specs
address_length(t(), pos_integer()) :: t()
Returns a new NetAddr.t/0
with the address part of
netaddr
and the given address length.
Examples
iex> NetAddr.ip("192.0.2.1/24")
...> |> NetAddr.address_length(22)
%NetAddr.IPv4{address: <<192, 0, 2, 1>>, length: 22}