Skip to content

coveringBitPrefix

coveringBitPrefix(prefixes): BitPrefix

Defined in: packages/net-address/src/prefix/aggregate.ts:123

The smallest single prefix covering every input.

Unlike aggregateBitPrefixes this may cover addresses none of the inputs did — that is what makes it a supernet rather than a summary. O(n) in the number of prefixes.

Iterable<BitPrefix>

BitPrefix

RangeError When the collection is empty or mixes widths.