Function script::dom::bindings::import::module::jsapi::JS::AddAssociatedMemory

source ยท
pub unsafe extern "C" fn AddAssociatedMemory(
    obj: *mut JSObject,
    nbytes: usize,
    use_: MemoryUse,
)
Expand description

Advise the GC of external memory owned by a JSObject. This is used to determine when to collect zones. Calls must be matched by calls to RemoveAssociatedMemory() when the memory is deallocated or no longer owned by the object.