Example #1
0
 public static function createIPv4Mapped(\BreiteSeite\IP\IPv4\Address $ipv4Address) : self
 {
     $mappedIpBinaryString = str_repeat('0', 80) . str_repeat('1', 16) . $ipv4Address->getAsBinary();
     return new self(gmp_init($mappedIpBinaryString, 2));
 }