[][src]Function esp_01::compare_circular_buffer

pub fn compare_circular_buffer(
    circular_buffer: &[u8],
    offset: usize,
    comparison: &[u8]
) -> bool

Compares the content of a circular buffer with another buffer. The comparison is done 'from the back' and if one buffer is longer than the other, only the content of the shared bytes is compared.

offset is the index of the first byte of the circular buffer

[4,5,0,1,2,3]
     ^- offset