You are here

private function Database::readQuad in Smart IP 6.2

Same name and namespace in other branches
  1. 7.2 includes/vendor/ip2location/ip2location-php/IP2Location.php \IP2Location\Database::readQuad()

Low level function to fetch a quadword (128 bits) from the caching backend

@access private

Parameters

int $pos Position to read from:

Return value

string

1 call to Database::readQuad()
Database::readIp in includes/vendor/ip2location/ip2location-php/IP2Location.php
High level fucntion to read an IP address of the given version

File

includes/vendor/ip2location/ip2location-php/IP2Location.php, line 1092

Class

Database
IP2Location database class

Namespace

IP2Location

Code

private function readQuad($pos) {

  // Use BCMath ints to get a quad's (128-bit) value
  return self::bcBin2Dec($this
    ->read($pos - 1, 16));
}