Skip to main content

fill_repeat

Function fill_repeat 

Source
pub fn fill_repeat(output: &mut Vec<u8>, pattern: &[u8], count: usize)
Expand description

Fill buffer with a repeating pattern.

Used for run-length encoding where a pattern repeats many times.

ยงArguments

  • output - Output buffer to extend
  • pattern - Pattern to repeat
  • count - Number of times to repeat the pattern