MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / allocate_zeroed

Method allocate_zeroed

aiscript-arena/src/allocator_api.rs:79–83  ·  view source on GitHub ↗
(&self, layout: Layout)

Source from the content-addressed store, hash-verified

77
78 #[inline]
79 fn allocate_zeroed(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> {
80 let ptr = self.allocator.allocate_zeroed(layout)?;
81 self.metrics.mark_external_allocation(layout.size());
82 Ok(ptr)
83 }
84
85 #[inline]
86 unsafe fn grow(

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected