[][src]Function spaik::nk::nk_new

pub unsafe extern "C" fn nk_new(
    sz: size_t,
    min: NkSz,
    load_factor: f64
) -> *mut Nuke

Create a new nuclear allocator of a certain size.

@param sz The size of the nk in bytes, and the growth number. @param min The minimum size of blocks you intend to allocate. @param max The maximum size of blocks you intend to allocate. @param load_factor A number in the range [0.0, 1.0] representing the amount of memory that can be in use without performing a re-allocation during compacting. @return Newly allocated nk, or NULL iff there was an error.