K2hash::openMem
Open k2hash as volatile(on memory).
Description
public bool K2hash::openMem ([ int $maskbitcnt [, int $cmaskbitcnt [, int $maxelementcnt [, int $pagesize ]]]] )
Open k2hash as volatile(on memory).
Parameters
- maskbitcnt
Specifies the key mask bit. The default value is 8. - cmaskbitcnt
Specifies the key collision mask bit. The default value is 4. - maxelementcnt
Specifies the max number of duplicated elements if a hash collision occurs. The default value is 1024(bytes). - pagesize
Specifies the block size of data. The default value is 512(bytes).
Return Values
Returns true on success or false on failure.
See Also
- K2hash::open - Opens the k2h file
- K2hash::openRO - Read the k2hash file
- K2hash::openRW - Edit the k2hash file
- K2hash::openTempfile - Edit the k2hash file on temporary file system