You are here

private function Database::readByte in Smart IP 6.2

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

Low level function to fetch a byte from the caching backend

@access private

Parameters

int $pos Position to read from:

Return value

string

2 calls to Database::readByte()
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 1116

Class

Database
IP2Location database class

Namespace

IP2Location

Code

private function readByte($pos) {

  // Unpack a byte's worth of data
  return self::wrap8(unpack('C', $this
    ->read($pos - 1, 1))[1]);
}