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

Method alloc

zeroize/tests/alloc.rs:12–14  ·  view source on GitHub ↗
(&self, layout: Layout)

Source from the content-addressed store, hash-verified

10
11unsafe impl GlobalAlloc for ProxyAllocator {
12 unsafe fn alloc(&self, layout: Layout) -> *mut u8 {
13 unsafe { System.alloc(layout) }
14 }
15
16 unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
17 if layout.size() == 160 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected