_sharedMemRead

The Google Font Fix sharedMemRead function.

Description

_sharedMemRead( $gi, $start, $maxLength ); 

Parameters (3)

0. $gi
The gi.
1. $start
The start.
2. $maxlength
The maxlength.

Usage

  1. if ( !function_exists( '_sharedMemRead' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-font-fix/geo/geoip.inc.php'; 
  3.  
  4. // The gi. 
  5. $gi = null; 
  6.  
  7. // The start. 
  8. $start = null; 
  9.  
  10. // The maxlength. 
  11. $maxlength = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = _sharedMemRead($gi, $start, $maxlength); 
  15.  

Defined (1)

The function is defined in the following location(s).

/geo/geoip.inc.php  
  1. function _sharedMemRead($gi, $start, $maxLength) 
  2. $readLength = min(shmop_size($gi->shmid) - $start, $maxLength); 
  3. return shmop_read($gi->shmid, $start, $readLength);