810 B
810 B
parity-util-mem
Collection of memory related utilities.
Features
- volatile-erase : Not set by default,
Memzero
struct will be erasing memory through a simplewrite_volatile
call. - estimate-heapsize : Do not use allocator, but
size_of
orsize_of_val
.
Others features define global allocator, see src/alloc.rs
.
Dependency
This crate groups common dependency, clear_on_drop
is reexported, and a patched copy of unpublished malloc_size_of
from servo project is copied and partially reexported.
Malloc_size_of
code is used internally as a module with a few modification to be able to implement type locally.