You are here

private function Database::readFloat in Smart IP 6.2

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

Low level function to fetch a float from the caching backend

@access private

Parameters

int $pos Position to read from:

Return value

float

1 call to Database::readFloat()
Database::readLatitudeAndLongitude in includes/vendor/ip2location/ip2location-php/IP2Location.php
High level function to fetch the latitude and longitude

File

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

Class

Database
IP2Location database class

Namespace

IP2Location

Code

private function readFloat($pos) {

  // Unpack a float's size worth of data
  return unpack('f', $this
    ->read($pos - 1, self::$floatSize))[1];
}