Struct adder_codec_core::codec::compressed::stream::CompressedInput
source · pub struct CompressedInput { /* private fields */ }Expand description
Read compressed ADΔER data from a stream.
Trait Implementations§
source§impl<R: Read> ReadCompression<R> for CompressedInput
impl<R: Read> ReadCompression<R> for CompressedInput
source§fn new() -> Selfwhere
Self: Sized,
fn new() -> Selfwhere Self: Sized,
A struct implementing
ReadCompression does not take ownership of the read handle.
Subsequent calls to the compressor will pass the read handle each time. The caller is
responsible for maintaining the reader.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 read_bytes(
&mut self,
bytes: &mut [u8],
reader: &mut BitReader<R, BigEndian>
) -> Result<()>
fn read_bytes( &mut self, bytes: &mut [u8], reader: &mut BitReader<R, BigEndian> ) -> Result<()>
Read a certain number of bytes from the stream, indicated by the size of the buffer passed.
source§fn digest_event(
&mut self,
reader: &mut BitReader<R, BigEndian>
) -> Result<Event, CodecError>
fn digest_event( &mut self, reader: &mut BitReader<R, BigEndian> ) -> Result<Event, CodecError>
Read the next event from the stream. Returns
None if the stream is exhausted.source§fn set_input_stream_position(
&mut self,
reader: &mut BitReader<R, BigEndian>,
position: u64
) -> Result<(), CodecError>
fn set_input_stream_position( &mut self, reader: &mut BitReader<R, BigEndian>, position: u64 ) -> Result<(), CodecError>
Set the input stream position to the given byte offset.