Function bcmp::patch_set [] [src]

pub fn patch_set(first: &[u8], second: &[u8], algo_spec: AlgoSpec) -> Vec<Match>

Identify the smallest set of patches needed the build the second byte slice from the first.

The returned set might be incomplete if some part of the second byte slice could not be found in the first. The result is highly dependent on the minimal matching length chosen.