Skip to main content

splinter_event_bus_get_dirty

Function splinter_event_bus_get_dirty 

Source
pub unsafe extern "C" fn splinter_event_bus_get_dirty(
    out: *mut u64,
    words: usize,
)
Expand description

@brief Copy a snapshot of the dirty-slot bitmask into caller-supplied storage.

Each bit i in word w represents physical slot index (w*64 + i). A set bit means that slot was written since the bus was initialized. Bits are never cleared by the library; use the snapshot delta against your own saved copy to find newly-dirtied slots.

@param out Destination array; must hold at least words uint64_t values. @param words Number of words to copy (cap: SPLINTER_EVENT_BUS_MASK_WORDS).