Function is_buffer_equal

Source
pub fn is_buffer_equal<const GUARD_ID: u32>(buf_1: &[u8], buf_2: &[u8]) -> bool
Expand description

Tests two buffers for equality

Pay attention to the GUARD_ID parameter. This should be unique on every call, through the entire hook code. Otherwise you will encounter guard violation during the execution of your hook.