private static function Database::wrap8 in Smart IP 6.2
Same name and namespace in other branches
- 7.2 includes/vendor/ip2location/ip2location-php/IP2Location.php \IP2Location\Database::wrap8()
Make the given number positive by wrapping it to 8 bit values
@access private @static
Parameters
int $x Number to wrap:
Return value
int
1 call to Database::wrap8()
- Database::readByte in includes/
vendor/ ip2location/ ip2location-php/ IP2Location.php - Low level function to fetch a byte from the caching backend
File
- includes/
vendor/ ip2location/ ip2location-php/ IP2Location.php, line 901
Class
- Database
- IP2Location database class
Namespace
IP2LocationCode
private static function wrap8($x) {
return $x + ($x < 0 ? 256 : 0);
}