Function zstd_sys::ZSTD_initStaticDDict [] [src]

pub unsafe extern "C" fn ZSTD_initStaticDDict(
    workspace: *mut c_void,
    workspaceSize: usize,
    dict: *const c_void,
    dictSize: usize,
    dictLoadMethod: ZSTD_dictLoadMethod_e
) -> *mut ZSTD_DDict

ZSTD_initStaticDDict() : Generate a digested dictionary in provided memory area. workspace: The memory area to emplace the dictionary into. Provided pointer must 8-bytes aligned. It must outlive dictionary usage. workspaceSize: Use ZSTD_estimateDDictSize() to determine how large workspace must be. @return : pointer to ZSTD_DDict*, or NULL if error (size too small) Note : there is no corresponding "free" function. Since workspace was allocated externally, it must be freed externally.