private function Database::readWord in Smart IP 7.2
Same name and namespace in other branches
- 6.2 includes/vendor/ip2location/ip2location-php/IP2Location.php \IP2Location\Database::readWord()
Low level function to fetch a word (32 bits) from the caching backend
@access private
Parameters
int $pos Position to read from:
Return value
int
4 calls to Database::readWord()
- Database::binSearch in includes/
vendor/ ip2location/ ip2location-php/ IP2Location.php - Perform a binary search on the given IP number and return a pointer to its record
- Database::readIp in includes/
vendor/ ip2location/ ip2location-php/ IP2Location.php - High level fucntion to read an IP address of the given version
- Database::readString in includes/
vendor/ ip2location/ ip2location-php/ IP2Location.php - Low level function to fetch a string from the caching backend
- Database::__construct in includes/
vendor/ ip2location/ ip2location-php/ IP2Location.php - Constructor
File
- includes/
vendor/ ip2location/ ip2location-php/ IP2Location.php, line 1104
Class
- Database
- IP2Location database class
Namespace
IP2LocationCode
private function readWord($pos) {
// Unpack a long's worth of data
return self::wrap32(unpack('V', $this
->read($pos - 1, 4))[1]);
}