Skip to main content

write_file_reference_update_to_scratch

Function write_file_reference_update_to_scratch 

Source
pub unsafe fn write_file_reference_update_to_scratch(
    ptr: *mut u8,
    index: u32,
    path: &str,
) -> Result<(), String>
Expand description

Write a file-reference update (index + new path) to scratch. Format: magic (u32), index (u32), length (u32), UTF-8 bytes.

ยงSafety

ptr must point to a valid SHM allocation.