Skip to main content

splinter_get_raw_ptr

Function splinter_get_raw_ptr 

Source
pub unsafe extern "C" fn splinter_get_raw_ptr(
    key: *const c_char,
    out_sz: *mut usize,
    out_epoch: *mut u64,
) -> *const c_void
Expand description

@brief Get a direct pointer to a value in shared memory. @warning Unsafe: The data at this pointer can change or be zeroed if a writer modifies the slot. Use splinter_get_epoch to verify consistency. @param key The key to look up. @param out_sz Pointer to receive the actual length of the value. @param out_epoch Pointer to receive the epoch at the time of lookup. @return A const pointer to the data in SHM, or NULL if not found.