Struct brotli::reader::DecompressorCustomAlloc [−][src]
pub struct DecompressorCustomAlloc<R, BufferType, AllocU8, AllocU32, AllocHC>(_)
where
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>,
R: Read,
BufferType: SliceWrapperMut<u8>,
AllocHC: Allocator<HuffmanCode>;
Implementations
impl<R, BufferType, AllocU8, AllocU32, AllocHC> DecompressorCustomAlloc<R, BufferType, AllocU8, AllocU32, AllocHC> where
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>,
R: Read,
BufferType: SliceWrapperMut<u8>,
AllocHC: Allocator<HuffmanCode>,
impl<R, BufferType, AllocU8, AllocU32, AllocHC> DecompressorCustomAlloc<R, BufferType, AllocU8, AllocU32, AllocHC> where
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>,
R: Read,
BufferType: SliceWrapperMut<u8>,
AllocHC: Allocator<HuffmanCode>,
pub fn new(
r: R,
buffer: BufferType,
alloc_u8: AllocU8,
alloc_u32: AllocU32,
alloc_hc: AllocHC
) -> DecompressorCustomAlloc<R, BufferType, AllocU8, AllocU32, AllocHC>ⓘNotable traits for DecompressorCustomAlloc<R, BufferType, AllocU8, AllocU32, AllocHC>impl<R, BufferType, AllocU8, AllocU32, AllocHC> Read for DecompressorCustomAlloc<R, BufferType, AllocU8, AllocU32, AllocHC> where
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>,
R: Read,
BufferType: SliceWrapperMut<u8>,
AllocHC: Allocator<HuffmanCode>,
Notable traits for DecompressorCustomAlloc<R, BufferType, AllocU8, AllocU32, AllocHC>
impl<R, BufferType, AllocU8, AllocU32, AllocHC> Read for DecompressorCustomAlloc<R, BufferType, AllocU8, AllocU32, AllocHC> where
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>,
R: Read,
BufferType: SliceWrapperMut<u8>,
AllocHC: Allocator<HuffmanCode>,
pub fn new_with_custom_dictionary(
r: R,
buffer: BufferType,
alloc_u8: AllocU8,
alloc_u32: AllocU32,
alloc_hc: AllocHC,
dict: <AllocU8 as Allocator<u8>>::AllocatedMemory
) -> DecompressorCustomAlloc<R, BufferType, AllocU8, AllocU32, AllocHC>ⓘNotable traits for DecompressorCustomAlloc<R, BufferType, AllocU8, AllocU32, AllocHC>impl<R, BufferType, AllocU8, AllocU32, AllocHC> Read for DecompressorCustomAlloc<R, BufferType, AllocU8, AllocU32, AllocHC> where
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>,
R: Read,
BufferType: SliceWrapperMut<u8>,
AllocHC: Allocator<HuffmanCode>,
Notable traits for DecompressorCustomAlloc<R, BufferType, AllocU8, AllocU32, AllocHC>
impl<R, BufferType, AllocU8, AllocU32, AllocHC> Read for DecompressorCustomAlloc<R, BufferType, AllocU8, AllocU32, AllocHC> where
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>,
R: Read,
BufferType: SliceWrapperMut<u8>,
AllocHC: Allocator<HuffmanCode>,
Trait Implementations
impl<R, BufferType, AllocU8, AllocU32, AllocHC> Read for DecompressorCustomAlloc<R, BufferType, AllocU8, AllocU32, AllocHC> where
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>,
R: Read,
BufferType: SliceWrapperMut<u8>,
AllocHC: Allocator<HuffmanCode>,
impl<R, BufferType, AllocU8, AllocU32, AllocHC> Read for DecompressorCustomAlloc<R, BufferType, AllocU8, AllocU32, AllocHC> where
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>,
R: Read,
BufferType: SliceWrapperMut<u8>,
AllocHC: Allocator<HuffmanCode>,
Pull some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Like read
, except that it reads into a slice of buffers. Read more
🔬 This is a nightly-only experimental API. (
can_vector
)Determines if this Read
er has an efficient read_vectored
implementation. Read more
🔬 This is a nightly-only experimental API. (
read_initializer
)Determines if this Read
er can work with buffers of uninitialized
memory. Read more
Read all bytes until EOF in this source, placing them into buf
. Read more
Read all bytes until EOF in this source, appending them to buf
. Read more
Read the exact number of bytes required to fill buf
. Read more
Creates a “by reference” adaptor for this instance of Read
. Read more
Creates an adaptor which will chain this stream with another. Read more