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

Method find_encoding_token

src/compression/lz77.rs:198–235  ·  view source on GitHub ↗

Finds the encoding token for the current position in the text. This method searches the search buffer for the longest match with the beginning of the text and returns the corresponding token.

(&self, text: &str, search_buffer: &str)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

compressMethod · 0.80
test_empty_search_bufferFunction · 0.80
test_empty_text_panicsFunction · 0.80

Calls 5

minMethod · 0.80
is_emptyMethod · 0.45
nextMethod · 0.45
lenMethod · 0.45
iterMethod · 0.45

Tested by 2

test_empty_search_bufferFunction · 0.64
test_empty_text_panicsFunction · 0.64