MediaWiki  REL1_19
CdbFunctions Class Reference

Common functions for readers and writers. More...

List of all members.

Static Public Member Functions

static hash ($s)
 The CDB hash function.
static unsignedMod ($a, $b)
 Take a modulo of a signed integer as if it were an unsigned integer.
static unsignedShiftRight ($a, $b)
 Shift a signed integer right as if it were unsigned.

Detailed Description

Common functions for readers and writers.

Definition at line 15 of file Cdb_PHP.php.


Member Function Documentation

static CdbFunctions::hash ( s) [static]

The CDB hash function.

Parameters:
$s
Returns:

Definition at line 58 of file Cdb_PHP.php.

Referenced by CdbReader_PHP\findNext(), and CdbWriter_PHP\set().

Here is the caller graph for this function:

static CdbFunctions::unsignedMod ( a,
b 
) [static]

Take a modulo of a signed integer as if it were an unsigned integer.

$b must be less than 0x40000000 and greater than 0

Parameters:
$a
$b
Returns:
int

Definition at line 25 of file Cdb_PHP.php.

Referenced by CdbReader_PHP\findNext(), and CdbWriter_PHP\finish().

Here is the caller graph for this function:

static CdbFunctions::unsignedShiftRight ( a,
b 
) [static]

Shift a signed integer right as if it were unsigned.

Parameters:
$a
$b
Returns:
int

Definition at line 40 of file Cdb_PHP.php.

Referenced by CdbReader_PHP\findNext(), and CdbWriter_PHP\finish().

Here is the caller graph for this function:


The documentation for this class was generated from the following file: