Struct bitcoin::util::bip158::GCSFilterReader [−][src]
pub struct GCSFilterReader { /* fields omitted */ }
Golomb-Rice encoded filter reader
Implementations
impl GCSFilterReader
[src]
impl GCSFilterReader
[src]pub fn new(k0: u64, k1: u64, m: u64, p: u8) -> GCSFilterReader
[src]
Create a new filter reader with specific seed to siphash
pub fn match_any(
&self,
reader: &mut dyn Read,
query: &mut dyn Iterator<Item = &[u8]>
) -> Result<bool, Error>
[src]
&self,
reader: &mut dyn Read,
query: &mut dyn Iterator<Item = &[u8]>
) -> Result<bool, Error>
match any query pattern
pub fn match_all(
&self,
reader: &mut dyn Read,
query: &mut dyn Iterator<Item = &[u8]>
) -> Result<bool, Error>
[src]
&self,
reader: &mut dyn Read,
query: &mut dyn Iterator<Item = &[u8]>
) -> Result<bool, Error>
match all query pattern