MCPcopy Create free account
hub / github.com/RustCrypto/utils / ProxyAllocator

Class ProxyAllocator

zeroize/tests/alloc.rs:9–9  ·  view source on GitHub ↗

Allocator that ensures that deallocated data is zeroized.

Source from the content-addressed store, hash-verified

7
8// Allocator that ensures that deallocated data is zeroized.
9struct ProxyAllocator;
10
11unsafe impl GlobalAlloc for ProxyAllocator {
12 unsafe fn alloc(&self, layout: Layout) -> *mut u8 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected