Lines Matching refs:asterisksCount

38     protected $asterisksCount;  variable in IPLib\\Range\\Pattern
52 * @param int $asterisksCount
54 …c function __construct(AddressInterface $fromAddress, AddressInterface $toAddress, $asterisksCount) argument
58 $this->asterisksCount = $asterisksCount;
76 $asterisksCount = strlen($matches[1]) >> 1;
77 if ($asterisksCount > 0) {
81 $asterisksCount += $missingDots;
86 $fixedBytes = array_slice($fromAddress->getBytes(), 0, -$asterisksCount);
87 $otherBytes = array_fill(0, $asterisksCount, 255);
89 $result = new static($fromAddress, $toAddress, $asterisksCount);
94 $asterisksCount = strlen($matches[1]) >> 1;
97 $fixedWords = array_slice($fromAddress->getWords(), 0, -$asterisksCount);
98 $otherWords = array_fill(0, $asterisksCount, 0xffff);
100 $result = new static($fromAddress, $toAddress, $asterisksCount);
115 if ($this->asterisksCount === 0) {
121 $chunks = array_slice($chunks, 0, -$this->asterisksCount);
128 $chunks = array_slice($chunks, 0, -$this->asterisksCount);
131 } elseif ($this->asterisksCount === 8) {
135 $bytes = array_slice($bytes, 0, -$this->asterisksCount * 2);
138 … $before = substr($address->toString(false), 0, -strlen(':101') * $this->asterisksCount);
139 $result = $before.str_repeat(':*', $this->asterisksCount);
301 …turn new Subnet($this->getStartAddress(), $this->getEndAddress(), 8 * (4 - $this->asterisksCount));
303 …urn new Subnet($this->getStartAddress(), $this->getEndAddress(), 16 * (8 - $this->asterisksCount));
317 switch ($this->asterisksCount) {
325 $bytes = array_pad(array_fill(0, 4 - $this->asterisksCount, 255), 4, 0);