Struct adder_codec_core::codec::compressed::stream::CompressedOutput
source · pub struct CompressedOutput<W: Write> { /* private fields */ }Expand description
Write compressed ADΔER data to a stream.
Trait Implementations§
source§impl<W: Write> WriteCompression<W> for CompressedOutput<W>
impl<W: Write> WriteCompression<W> for CompressedOutput<W>
source§fn new(meta: CodecMetadata, writer: W) -> Self
fn new(meta: CodecMetadata, writer: W) -> Self
A struct implementing
WriteCompression should take ownership of the writer.source§fn meta(&self) -> &CodecMetadata
fn meta(&self) -> &CodecMetadata
Returns a reference to the metadata
source§fn meta_mut(&mut self) -> &mut CodecMetadata
fn meta_mut(&mut self) -> &mut CodecMetadata
Returns a mutable reference to the metadata
source§fn byte_align(&mut self) -> Result<()>
fn byte_align(&mut self) -> Result<()>
Align the bitstream to the next byte boundary
source§fn into_writer(self: Box<Self>) -> Option<W>
fn into_writer(self: Box<Self>) -> Option<W>
Consumes the compression stream and returns the underlying writer.
source§fn flush_writer(&mut self) -> Result<()>
fn flush_writer(&mut self) -> Result<()>
Flush the
BitWriter. Does not flush the internal BufWriter.source§fn ingest_event(&mut self, _event: &Event) -> Result<(), CodecError>
fn ingest_event(&mut self, _event: &Event) -> Result<(), CodecError>
Take in an event and process it. May or may not write to the output, depending on the state
of the stream (Is it ready to write events? Is it accumulating/reorganizing events? etc.)