Function is_beefcode

Source
pub const fn is_beefcode(addr: u32) -> bool
Expand description

Returns true if the code address indicates a “beefcode”. In that case, the beefcode method should be invoked.

§Example

use codebreaker::cb7::is_beefcode;

assert_eq!(is_beefcode(0xBEEFC0DE), true);
assert_eq!(is_beefcode(0xBEEFC0DF), true);
assert_eq!(is_beefcode(0x12345678), false);