insert_if_alive

Function insert_if_alive 

Source
pub unsafe fn insert_if_alive(
    base: *mut u8,
    id: u16,
    generation: u16,
    src: *const u8,
) -> bool
Expand description

Safe wrapper for insert that validates the handle Insert raw bytes at handle id, but only if the handle is valid Returns true if successful, false if the handle is invalid

ยงSafety