[−][src]Function mupdf_sys::fz_new_hash_table
pub unsafe extern "C" fn fz_new_hash_table(
ctx: *mut fz_context,
initialsize: c_int,
keylen: c_int,
lock: c_int,
drop_val: fz_hash_table_drop_fn
) -> *mut fz_hash_table
Create a new hash table.
initialsize: The initial size of the hashtable. The hashtable may grow (double in size) if it starts to get crowded (80% full).
keylen: byte length for each key.
lock: -1 for no lock, otherwise the FZ_LOCK to use to protect this table.
drop_val: Function to use to destroy values on table drop.