MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / decompress

Method decompress

src/compression/lz77.rs:177–192  ·  view source on GitHub ↗

Decompresses a list of tokens back into the original text. # Arguments `tokens` - A slice of `Token`s representing compressed data # Returns The decompressed string # Examples ``` use the_algorithms_rust::compression::{LZ77Compressor, Token}; let compressor = LZ77Compressor::new(13, 6); let tokens = vec![ Token::new(0, 0, 'a'), Token::new(0, 0, 'b'), Token::new(2, 2, 'c'), Token::new(4, 3,

(&self, tokens: &[Token])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 2

pushMethod · 0.80
lenMethod · 0.45