servo_allocator

Function usable_size

source
pub unsafe extern "C" fn usable_size(ptr: *const c_void) -> usize
Expand description

Get the size of a heap block.

ยงSafety

Passing a non-heap allocated pointer to this function results in undefined behavior.