Skip to main content

UnityMemoryManagerInterface

Trait UnityMemoryManagerInterface 

Source
pub trait UnityMemoryManagerInterface {
    // Required method
    unsafe fn create_allocator(
        &self,
        area_name: &CStr,
        object_name: &CStr,
    ) -> Option<UnityAllocator>;
}

Required Methods§

Source

unsafe fn create_allocator( &self, area_name: &CStr, object_name: &CStr, ) -> Option<UnityAllocator>

§Safety

area_name and object_name must remain valid for the lifetime of the returned UnityAllocator.

Implementors§