pub trait ChunkDecoder {
    type ReaderType: Read;

    const MAGIC_HEADER: &'static [u8; 16];

    // Required methods
    fn decode_stream(reader: FileReader, size: u64) -> Self::ReaderType;
    fn dispose_stream(stream: Self::ReaderType) -> FileReader ;
}

Required Associated Types§

Required Associated Constants§

source

const MAGIC_HEADER: &'static [u8; 16]

Required Methods§

Implementors§

source§

impl ChunkDecoder for CompressedStreamDecoder

source§

const MAGIC_HEADER: &'static [u8; 16] = COMPRESSED_BUCKET_MAGIC

§

type ReaderType = VecReader<Decoder<FileReader>>

source§

impl ChunkDecoder for LockFreeStreamDecoder

source§

const MAGIC_HEADER: &'static [u8; 16] = LOCK_FREE_BUCKET_MAGIC

§

type ReaderType = Take<FileReader>

source§

impl ChunkDecoder for UnbufferedCompressedStreamDecoder

source§

const MAGIC_HEADER: &'static [u8; 16] = COMPRESSED_BUCKET_MAGIC

§

type ReaderType = Decoder<FileReader>