Skip to main content

write_plugin_name_to_scratch

Function write_plugin_name_to_scratch 

Source
pub unsafe fn write_plugin_name_to_scratch(ptr: *mut u8, name: &str)
Expand description

Write a plugin name to the start of the scratch buffer. The name is encoded as a little-endian u32 length followed by UTF-8 bytes.

ยงSafety

ptr must point to a valid SHM allocation.