MCPcopy Create free account
hub / github.com/Ruddle/Fomos / alloc

Method alloc

app_cursor/src/st.rs:95–97  ·  view source on GitHub ↗
(&self, layout: alloc::alloc::Layout)

Source from the content-addressed store, hash-verified

93}
94unsafe impl GlobalAlloc for AllocFromCtx {
95 unsafe fn alloc(&self, layout: alloc::alloc::Layout) -> *mut u8 {
96 (self.a)(layout.size(), layout.align())
97 }
98
99 unsafe fn dealloc(&self, ptr: *mut u8, layout: alloc::alloc::Layout) {
100 (self.d)(ptr, layout.size(), layout.align());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected