pub fn scan_memory_buffer(buf: &[u8]) -> Vec<MemoryCarvedRecord>Expand description
Scan an arbitrary byte buffer for EVTX record magic and recover plausible records.
Uses a three-phase approach:
- Byte-scan for
0x2A 0x2A 0x00 0x00(record magic). - Validate
record_lengthfield: must be in[28, 65536]and fit within the buffer. - Check BinXML token at
payload[0](must be0x0FFragmentHeader).
Records whose size field would extend beyond the buffer are silently skipped.