Struct ruzstd::decoding::dictionary::Dictionary
source · pub struct Dictionary {
pub id: u32,
pub fse: FSEScratch,
pub huf: HuffmanScratch,
pub dict_content: Vec<u8>,
pub offset_hist: [u32; 3],
}
Fields§
§id: u32
§fse: FSEScratch
§huf: HuffmanScratch
§dict_content: Vec<u8>
§offset_hist: [u32; 3]
Implementations§
source§impl Dictionary
impl Dictionary
sourcepub fn decode_dict(raw: &[u8]) -> Result<Dictionary, DictionaryDecodeError>
pub fn decode_dict(raw: &[u8]) -> Result<Dictionary, DictionaryDecodeError>
parses the dictionary and set the tables it returns the dict_id for checking with the frame’s dict_id
Auto Trait Implementations§
impl RefUnwindSafe for Dictionary
impl Send for Dictionary
impl Sync for Dictionary
impl Unpin for Dictionary
impl UnwindSafe for Dictionary
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more