[][src]Function jemalloc_ctl::raw::write

pub unsafe fn write<T>(name: &[u8], value: T) -> Result<()>

Uses the null-terminated string name as the key to the MALLCTL NAMESPACE and writes it value

Safety

This function is unsafe because it is possible to use it to construct an invalid T, for example, by passing T=u8 for a key expecting bool. The sizes of bool and u8 match, but bool cannot represent all values that u8 can.