Trait Compression

Source
pub trait Compression<R, W>
where R: Read, W: Write,
{ // Required methods fn compress( &self, reader: &mut R, writer: &mut W, ) -> PortableAudioLibraryResult<()>; fn decompress( &self, reader: &mut R, writer: &mut W, ) -> PortableAudioLibraryResult<()>; }
Expand description

Compresses and decompresses audio data.

Required Methods§

Source

fn compress( &self, reader: &mut R, writer: &mut W, ) -> PortableAudioLibraryResult<()>

Compresses the audio data from the reader to the writer.

Source

fn decompress( &self, reader: &mut R, writer: &mut W, ) -> PortableAudioLibraryResult<()>

Decompresses the audio data from the reader to the writer.

Implementors§

Source§

impl<R, W> Compression<R, W> for Gz
where R: Read, W: Write,

Source§

impl<R, W> Compression<R, W> for Lz4
where R: Read, W: Write,

Source§

impl<R, W> Compression<R, W> for None
where R: Read, W: Write,

Source§

impl<R, W> Compression<R, W> for Snap
where R: Read, W: Write,