Developer K2hash Class

Predefined Constants

The constants below are defined by K2HASH PHP Extension.

K2H_DA_READ (integer)

Sets the library to access data using direct access mode with read-only mode.

K2H_DA_WRITE (integer)

Sets the library to access data using direct access mode with write-only mode.

K2H_DA_RW (integer)

Sets the library to access data using direct access mode with read and write mode.

K2H_DEF_MASK_BIT (integer)

Sets key mask bit that is used to initialize the hash pointer tables. The default value is 8.

K2H_DEF_CMASK_BIT (integer)

Sets key collision mask bit. The default value is 4.

K2H_DEF_ELEMENT (integer)

Sets a max number of duplicated elements if a hash collision occurs. The default value is 1024(bytes).

K2H_DEF_PAGESIZE (integer)

Sets a block size of data. The default value is 512(bytes).

K2H_ATTR_DEFAULT (integer)

Value: -1

K2H_ATTR_DISABLE (integer)

Value: 0

K2H_ATTR_ENABLE (integer)

Value: 1

Developer K2hash Class