Skip to main content

write_resource_directory_to_scratch

Function write_resource_directory_to_scratch 

Source
pub unsafe fn write_resource_directory_to_scratch(
    ptr: *mut u8,
    path: &str,
    is_shared: bool,
) -> Result<(), String>
Expand description

Write a resource-directory path and its sharing flag to scratch. Format: magic (u32), length (u32), UTF-8 bytes, is_shared (u32).

ยงSafety

ptr must point to a valid SHM allocation.