Struct bitcoin::util::bip158::GCSFilterWriter [−][src]
pub struct GCSFilterWriter<'a> { /* fields omitted */ }
Colomb-Rice encoded filter writer
Implementations
impl<'a> GCSFilterWriter<'a>
[src]
impl<'a> GCSFilterWriter<'a>
[src]pub fn new(
writer: &'a mut dyn Write,
k0: u64,
k1: u64,
m: u64,
p: u8
) -> GCSFilterWriter<'a>
[src]
writer: &'a mut dyn Write,
k0: u64,
k1: u64,
m: u64,
p: u8
) -> GCSFilterWriter<'a>
Create a new GCS writer wrapping a generic writer, with specific seed to siphash
pub fn add_element(&mut self, element: &[u8])
[src]
Add some data to the filter
pub fn finish(&mut self) -> Result<usize, Error>
[src]
write the filter to the wrapped writer