Cooper. CIDR
(Cooper v0.1.0)
Copy Markdown
Shared bitwise CIDR math for Cooper.IPv4/Cooper.IPv6 -- both
address families need the identical operations (prefix -> mask,
address <-> integer, network/broadcast/host-range math), differing
only in bit width (32 vs 128) and part width (8-bit octets vs 16-bit
hextets), so this holds one implementation instead of two
near-copies. Not meant to be called directly -- use Cooper.IPv4/
Cooper.IPv6's own functions, which already know their own bit width.