| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/cdc/wp-content/plugins/wordfence/vendor/wordfence/mmdb-reader/src/ |
Upload File : |
<?php
namespace Wordfence\MmdbReader;
class Endianness {
const BIG = 0;
const LITTLE = 1;
private static $SYSTEM = null;
private static function detect() {
$test = unpack('S', "\x00\x01");
return $test[1] >> 8;
}
public static function get() {
if (self::$SYSTEM === null)
self::$SYSTEM = self::detect();
return self::$SYSTEM;
}
public static function isBig() {
return self::get() === self::BIG;
}
public static function isLittle() {
return self::get() === self::LITTLE;
}
public static function convert($value, $source, $target = null) {
if ($target === null)
$target = self::get();
if ($target === $source)
return $value;
return strrev($value);
}
}