pub struct DscDecoder<'a> {
stream: MsbBitStream<MemReaderRef<'a>>,
key: u32,
magic: u32,
output_size: u32,
dec_count: u32,
}
Available on crate features
bgi
and bgi-arc
only.Expand description
Decoder for Buriko General Interpreter/Ethornell compressed files (DSC format).
Fields§
§stream: MsbBitStream<MemReaderRef<'a>>
§key: u32
§magic: u32
§output_size: u32
§dec_count: u32
Implementations§
Source§impl<'a> DscDecoder<'a>
impl<'a> DscDecoder<'a>
fn create_huffman_tree(codes: Vec<HuffmanCode>) -> Vec<HuffmanNode>
fn huffman_decompress(&mut self, nodes: Vec<HuffmanNode>) -> Result<Vec<u8>>
fn update_key(&mut self) -> u8
Auto Trait Implementations§
impl<'a> Freeze for DscDecoder<'a>
impl<'a> RefUnwindSafe for DscDecoder<'a>
impl<'a> Send for DscDecoder<'a>
impl<'a> Sync for DscDecoder<'a>
impl<'a> Unpin for DscDecoder<'a>
impl<'a> UnwindSafe for DscDecoder<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more