Skip to main content

decode_events

Function decode_events 

Source
pub fn decode_events(buf: &[u8]) -> Result<Vec<InotifyEvent>, CoreError>
Expand description

Decode packed inotify events from a raw byte buffer.

This handles multi-event buffers and handles unaligned reads safely. Malformed or truncated events result in an error.