Lines Matching refs:networkPrefix
38 protected $networkPrefix; variable in IPLib\\Range\\Subnet
59 * @param int $networkPrefix
63 …ic function __construct(AddressInterface $fromAddress, AddressInterface $toAddress, $networkPrefix) argument
67 $this->networkPrefix = $networkPrefix;
86 $networkPrefix = (int) $parts[1];
87 if ($networkPrefix >= 0) {
90 $numDifferentBits = $totalBytes * 8 - $networkPrefix;
92 $numSameBytes = $networkPrefix >> 3;
96 $startSameBits = $networkPrefix % 8;
105 $networkPrefix
124 return $this->fromAddress->toString($long).'/'.$this->networkPrefix;
291 return $this->networkPrefix;
302 $networkPrefix = $this->getNetworkPrefix();
305 … return $networkPrefix % 8 === 0 ? new Pattern($address, $address, 4 - $networkPrefix / 8) : null;
307 …return $networkPrefix % 16 === 0 ? new Pattern($address, $address, 8 - $networkPrefix / 16) : null;