MediaWiki
REL1_22
|
Common functions for readers and writers. More...
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. |
Common functions for readers and writers.
Definition at line 30 of file Cdb_PHP.php.
static CdbFunctions::hash | ( | $ | s | ) | [static] |
The CDB hash function.
$s | string |
Definition at line 73 of file Cdb_PHP.php.
References $s.
Referenced by CdbReader_PHP\findNext(), and CdbWriter_PHP\set().
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
$a | |
$b |
Definition at line 40 of file Cdb_PHP.php.
Referenced by CdbReader_PHP\findNext(), and CdbWriter_PHP\finish().
static CdbFunctions::unsignedShiftRight | ( | $ | a, |
$ | b | ||
) | [static] |
Shift a signed integer right as if it were unsigned.
$a | |
$b |
Definition at line 55 of file Cdb_PHP.php.
Referenced by CdbReader_PHP\findNext(), and CdbWriter_PHP\finish().