MCPcopy Create free account
hub / github.com/ezrosent/allocators-rs / insert_layout

Method insert_layout

malloc-bind/src/lib.rs:96–96  ·  view source on GitHub ↗

Insert a new object to `Layout` mapping. `insert_layout` is passed a pointer to a newly-allocated object and a `Layout` describing that object, and it stores this mapping. `insert_layout` is called immediately after allocation in all of the C allocation functions. The default implementation of `insert_layout` is a no-op, as some allocators may already keep track of the information necessary to i

(&self, _ptr: *mut u8, _layout: Layout)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 9

c_mallocMethod · 0.80
c_callocMethod · 0.80
c_vallocMethod · 0.80
c_pvallocMethod · 0.80
c_reallocMethod · 0.80
c_reallocfMethod · 0.80
c_posix_memalignMethod · 0.80
c_memalignMethod · 0.80
c__aligned_mallocMethod · 0.80

Implementers 1

alloc_impl.rselfmalloc/src/alloc_impl.rs

Calls

no outgoing calls

Tested by

no test coverage detected