Block

A representation of a CIDR block.

IP.Block.swift:13
@frozen struct Block<Base> where Base : IP.Address

Create a CIDR block using the Address./(_:_:) operator.

This type wastes a lot of padding, as it stores the prefix length alongside the base mask, so it is only suitable as a formatter, parser, or interface type.

Data structures should mask the base addresses using Address.zeroMasked(to:) and perform lookups against the masked values.