|
MediaWiki
REL1_23
|
CDB reader class. More...


Public Member Functions | |
| __construct ($fileName) | |
| close () | |
| Close the file. | |
| get ($key) | |
Public Attributes | |
| $dlen | |
| $dpos | |
| $fileName | |
| The filename. | |
| $hpos | |
| $hslots | |
| $khash | |
| $kpos | |
| $loop | |
Protected Member Functions | |
| find ($key) | |
| findNext ($key) | |
| findStart () | |
| match ($key, $pos) | |
| read ($length, $pos) | |
| unpack31 ($s) | |
| Unpack an unsigned integer and throw an exception if it needs more than 31 bits. | |
| unpackSigned ($s) | |
| Unpack a 32-bit signed integer. | |
CDB reader class.
Definition at line 102 of file CdbPHP.php.
| CdbReaderPHP::__construct | ( | $ | fileName | ) |
| $fileName | string |
| CdbException |
Reimplemented from CdbReader.
Definition at line 131 of file CdbPHP.php.
References $fileName, and findStart().
Close the file.
Optional, you can just let the variable go out of scope.
Reimplemented from CdbReader.
Definition at line 140 of file CdbPHP.php.
| CdbReaderPHP::find | ( | $ | key | ) | [protected] |
| $key |
Definition at line 280 of file CdbPHP.php.
References $key, findNext(), and findStart().
Referenced by get().
| CdbReaderPHP::findNext | ( | $ | key | ) | [protected] |
| $key |
Definition at line 232 of file CdbPHP.php.
References $key, CdbFunctions\hash(), match(), read(), unpack31(), unpackSigned(), CdbFunctions\unsignedMod(), and CdbFunctions\unsignedShiftRight().
Referenced by find().
| CdbReaderPHP::findStart | ( | ) | [protected] |
Definition at line 171 of file CdbPHP.php.
Referenced by __construct(), and find().
| CdbReaderPHP::get | ( | $ | key | ) |
| CdbReaderPHP::match | ( | $ | key, |
| $ | pos | ||
| ) | [protected] |
| $key | |
| $pos |
Definition at line 165 of file CdbPHP.php.
Referenced by findNext().
| CdbReaderPHP::read | ( | $ | length, |
| $ | pos | ||
| ) | [protected] |
| CdbException |
| $length | |
| $pos |
Definition at line 181 of file CdbPHP.php.
Referenced by findNext(), get(), and match().
| CdbReaderPHP::unpack31 | ( | $ | s | ) | [protected] |
Unpack an unsigned integer and throw an exception if it needs more than 31 bits.
| $s |
| CdbException |
Definition at line 207 of file CdbPHP.php.
References $s.
Referenced by findNext().
| CdbReaderPHP::unpackSigned | ( | $ | s | ) | [protected] |
Unpack a 32-bit signed integer.
| $s |
Definition at line 222 of file CdbPHP.php.
References $s.
Referenced by findNext().
| CdbReaderPHP::$dlen |
Definition at line 125 of file CdbPHP.php.
| CdbReaderPHP::$dpos |
Definition at line 122 of file CdbPHP.php.
| CdbReaderPHP::$fileName |
| CdbReaderPHP::$hpos |
Definition at line 116 of file CdbPHP.php.
| CdbReaderPHP::$hslots |
Definition at line 119 of file CdbPHP.php.
| CdbReaderPHP::$khash |
Definition at line 110 of file CdbPHP.php.
| CdbReaderPHP::$kpos |
Definition at line 113 of file CdbPHP.php.
| CdbReaderPHP::$loop |
Definition at line 107 of file CdbPHP.php.