[][src]Function zstd_safe::compress_using_dict

pub fn compress_using_dict(
    ctx: &mut CCtx,
    dst: &mut [u8],
    src: &[u8],
    dict: &[u8],
    compression_level: i32
) -> Result<usize, usize>

ZSTD_compress_usingDict()

Compression using a predefined Dictionary (see dictBuilder/zdict.h).

Note : This function loads the dictionary, resulting in significant startup delay.

Note : When dict == NULL || dictSize < 8 no dictionary is used.