Lines Matching refs:bytes
28 protected $bytes; variable in IPLib\\Address\\IPv4
59 $this->bytes = null;
104 * @param int[]|array $bytes
108 public static function fromBytes(array $bytes) argument
111 if (count($bytes) === 4) {
116 $bytes
157 if ($this->bytes === null) {
158 $this->bytes = array_map(
166 return $this->bytes;
311 $bytes = $this->getBytes();
312 for ($i = count($bytes) - 1; $i >= 0; --$i) {
313 if ($bytes[$i] === 255) {
318 $bytes[$i] = 0;
320 ++$bytes[$i];
325 return $overflow ? null : static::fromBytes($bytes);
336 $bytes = $this->getBytes();
337 for ($i = count($bytes) - 1; $i >= 0; --$i) {
338 if ($bytes[$i] === 0) {
343 $bytes[$i] = 255;
345 --$bytes[$i];
350 return $overflow ? null : static::fromBytes($bytes);