MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / alloc

Method alloc

Src/Base/AMReX_FabArrayBase.cpp:2819–2826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2817 }
2818
2819 void* SingleChunkArena::alloc (std::size_t sz)
2820 {
2821 amrex::ignore_unused(m_size);
2822 auto* p = (void*)m_free;
2823 AMREX_ASSERT(sz <= m_size && ((m_free-m_root)+sz <= m_size));
2824 m_free += sz;
2825 return p;
2826 }
2827
2828 void SingleChunkArena::free (void* /*pt*/) {}
2829

Callers 1

SingleChunkArenaMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected