has_new_bits

Function has_new_bits 

Source
pub unsafe extern "C" fn has_new_bits(
    virgin_map: *mut u8,
    shm_map: *mut u8,
    map_size: u32,
) -> u8
Expand description

Compare two memory maps to detect new bits.

§Arguments

  • virgin_map - Pointer to the virgin (baseline) map.
  • shm_map - Pointer to the shared memory map to compare against.
  • map_size - Size of the map in bytes.

§Returns

A byte value indicating if new bits were found:

  • 0: No new bits found
  • 1: New hitcount found
  • 2: New tuples found