dklib.khash

Undocumented in source.

Members

Aliases

kcalloc
alias kcalloc = calloc
Undocumented in source.
kfree
alias kfree = free
Undocumented in source.
khint32_t
alias khint32_t = uint
Undocumented in source.
khint64_t
alias khint64_t = ulong
Undocumented in source.
khint_t
alias khint_t = khint32_t
Undocumented in source.
khiter_t
alias khiter_t = khint_t
Undocumented in source.
kmalloc
alias kmalloc = malloc
Undocumented in source.
krealloc
alias krealloc = realloc
Undocumented in source.

Functions

__ac_fsize
auto __ac_fsize(T m)
Undocumented in source. Be warned that the author may not have intended to support it.
__ac_isdel
auto __ac_isdel(const(khint32_t)* flag, T i)

bucket deleted?

__ac_iseither
auto __ac_iseither(const(khint32_t)* flag, T i)

bucket empty OR deleted?

__ac_isempty
auto __ac_isempty(const(khint32_t)* flag, T i)

bucket empty?

__ac_set_isboth_false
void __ac_set_isboth_false(khint32_t* flag, T i)

mark neither empty nor deleted

__ac_set_isdel_false
void __ac_set_isdel_false(khint32_t* flag, T i)

unmark deleted

__ac_set_isdel_true
void __ac_set_isdel_true(khint32_t* flag, T i)

mark deleted

__ac_set_isempty_false
void __ac_set_isempty_false(khint32_t* flag, T i)

unmark empty

kroundup32
void kroundup32(T x)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

AC_VERSION_KHASH_H
enum AC_VERSION_KHASH_H;
Undocumented in source.

Templates

kh_hash
template kh_hash(T)
khash
template khash(KT, VT, bool kh_is_map = true, bool useGC = true)

Straight port of khash's generic C approach

Meta