Function gnunet_sys::GNUNET_CONTAINER_bloomfilter_init[][src]

pub unsafe extern "C" fn GNUNET_CONTAINER_bloomfilter_init(
    data: *const c_char,
    size: usize,
    k: c_uint
) -> *mut GNUNET_CONTAINER_BloomFilter

@ingroup bloomfilter Create a Bloom filter from raw bits.

@param data the raw bits in memory (maybe NULL, in which case all bits should be considered to be zero). @param size the size of the bloom-filter (number of bytes of storage space to use); also size of @a data – unless data is NULL. Must be a power of 2. @param k the number of #GNUNET_CRYPTO_hash-functions to apply per element (number of bits set per element in the set) @return the bloomfilter