private static function Database::wrap32 in Smart IP 7.2
Same name and namespace in other branches
- 6.2 includes/vendor/ip2location/ip2location-php/IP2Location.php \IP2Location\Database::wrap32()
Make the given number positive by wrapping it to 32 bit values
@access private @static
Parameters
int $x Number to wrap:
Return value
int
4 calls to Database::wrap32()
- Database::getShmKey in includes/
vendor/ ip2location/ ip2location-php/ IP2Location.php - Generate a unique and repeatable shared memory key for each instance to use
- Database::ipVersionAndNumber in includes/
vendor/ ip2location/ ip2location-php/ IP2Location.php - Get the IP version and number of the given IP address
- Database::readIp in includes/
vendor/ ip2location/ ip2location-php/ IP2Location.php - High level fucntion to read an IP address of the given version
- Database::readWord in includes/
vendor/ ip2location/ ip2location-php/ IP2Location.php - Low level function to fetch a word (32 bits) from the caching backend
File
- includes/
vendor/ ip2location/ ip2location-php/ IP2Location.php, line 913
Class
- Database
- IP2Location database class
Namespace
IP2LocationCode
private static function wrap32($x) {
return $x + ($x < 0 ? 4294967296 : 0);
}