silk.compress.lzma2_decode.
LZMA2 chunk framing shared by raw LZMA2 and XZ decoders.
Import as Lzma2Stream with import silk.compress.lzma2_decode { Lzma2Stream }.
Public declarations: 1.
Lzma2Stream#
pub struct Lzma2StreamInternal LZMA2 stream driver; state owns probability models and progress counters.
Implementation Lzma2Stream#
impl Lzma2StreamAssociated function decode#
pub effect fn decode(
state: &mut LzmaState,
input: &[u8],
output: &mut [u8],
workspace: usize
) -> ()
! OutOfMemoryError
? &mut AllocatorDecodes through the LZMA2 end control byte, preserving any following container bytes.
Requires a validated dictionary size and slice bounds in state.
Category: Data formats.
Profiles: aarch64-apple-darwin, aarch64-unknown-linux-gnu, aarch64-unknown-linux-gnu-no-libc, x86_64-unknown-linux-gnu, x86_64-unknown-linux-gnu-no-libc, wasm32-unknown-unknown, wasm32-wasip1, wasm32-wasip2.