Skip to main content

write_file_references_to_scratch

Function write_file_references_to_scratch 

Source
pub unsafe fn write_file_references_to_scratch(
    ptr: *mut u8,
    refs: &[FileReference],
) -> Result<(), String>
Expand description

Write a list of file-reference (index, path) pairs to scratch. Format: magic (u32), count (u32), then for each entry: index (u32), length (u32) followed by UTF-8 bytes.

ยงSafety

ptr must point to a valid SHM allocation.