Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
module
Krikri::IpAddrCore
Constants
FAMILY_FILTERS =
Set
{"ipaddr", "ipwrap", "ipv4", "ipv6", "ipsubnet", "ipmath", "next_nth_usable", "previous_nth_usable", "network_in_network", "network_in_usable", "ip4_hex"}
Instance methods
format_cidr
(net :
Net
) :
String
Source
format_ip
(version :
Int32
, ip :
UInt128
) :
String
Source
format_net
(net :
Net
) :
String
Source
format_v4
(ip :
UInt128
) :
String
Source
format_v6
(ip :
UInt128
) :
String
Source
ip4_hex
(value :
JSON::Any
, delimiter :
String
= "") :
JSON::Any
Source
ipaddr
(value :
JSON::Any
, query :
String
= "", version :
Int32
|
Nil
= nil, alias_name :
String
= "ipaddr") :
JSON::Any
Source
ipmath
(value :
JSON::Any
, amount :
Int64
) :
JSON::Any
Source
ipsubnet
(value :
JSON::Any
, query :
String
, index :
String
|
Nil
= nil) :
JSON::Any
Source
ipwrap
(value :
JSON::Any
, query :
String
= "") :
JSON::Any
Source
json_int
(n :
UInt128
) :
JSON::Any
Source
network_in_network
(value :
JSON::Any
, test :
JSON::Any
) :
JSON::Any
Source
network_in_usable
(value :
JSON::Any
, test :
JSON::Any
) :
JSON::Any
Source
next_nth_usable
(value :
JSON::Any
, offset :
Int64
) :
JSON::Any
Source
parse_v4
(s :
String
) :
UInt128
|
Nil
Source
parse_v6
(s :
String
) :
UInt128
|
Nil
Source
parse_value
(str :
String
) :
Net
|
Nil
Source
previous_nth_usable
(value :
JSON::Any
, offset :
Int64
) :
JSON::Any
Source
Nested types
Krikri::IpAddrCore::IpError