pub fn validate_binlog_magic(data: &[u8]) -> boolExpand description
Validate that the first 4 bytes match the binlog magic number.
ยงExamples
use idb::binlog::header::validate_binlog_magic;
assert!(validate_binlog_magic(&[0xfe, 0x62, 0x69, 0x6e]));
assert!(!validate_binlog_magic(&[0x00, 0x00, 0x00, 0x00]));
assert!(!validate_binlog_magic(&[0xfe, 0x62])); // too short