pub fn from_existing(
        bitmap: &[u8],
        bitmap_bits: u64,
        k_num: u32,
        sip_keys: [(u64, u64); 2],
        ) -> Self {
        let sips = [
            SipHasher13::new_with_keys(sip_keys[0].0, sip_keys[0].1),
            SipHasher13::new_with_keys(sip_keys[1].0, sip_keys[1].1),
        ];
        Self {
            bitmap: BitVec::from_bytes(bitmap),
            bitmap_bits,
            k_num,
            sips,
            _phantom: PhantomData,
        }
    }
/// Create a bloom filter structure with an existing state.
/// The state is assumed to be retrieved from an existing bloom filter.
Create a bloom filter structure with an existing state.
The state is assumed to be retrieved from an existing bloom filter.
Create a bloom filter structure with an existing state . The state is assumed to be retrieved from an existing bloom filter .
pub fn from_existing(
        bitmap: &[u8],
        bitmap_bits: u64,
        k_num: u32,
        sip_keys: [(u64, u64); 2],
        ) -> Self {
        let sips = [
            SipHasher13::new_with_keys(sip_keys[0].0, sip_keys[0].1),
            SipHasher13::new_with_keys(sip_keys[1].0, sip_keys[1].1),
        ];
        Self {
            bitmap: BitVec::from_bytes(bitmap),
            bitmap_bits,
            k_num,
            sips,
            _phantom: PhantomData,
        }
    }
pub fn from_existing ( bitmap : & [ u8 ] , bitmap_bits : u64 , k_num : u32 , sip_keys : [ ( u64 , u64 ) ; 2 ] , ) -> Self { let sips = [ SipHasher13 :: new_with_keys ( sip_keys [ 0 ] . 0 , sip_keys [ 0 ] . 1 ) , SipHasher13 :: new_with_keys ( sip_keys [ 1 ] . 0 , sip_keys [ 1 ] . 1 ) , ] ; Self { bitmap : BitVec :: from_bytes ( bitmap ) , bitmap_bits , k_num , sips , _phantom : PhantomData , } }
Create a bloom filter structure with an existing state.
Create a bloom filter structure with an existing state .
bitmap
&[u8]
bitmap_bits
u64
k_num
u32
sip_keys
[(u64, u64); 2]
bitmap
&[u8]
bitmap_bits
u64
k_num
u32
sip_keys
[(u64, u64); 2]