Skip to content
Snippets Groups Projects
Commit cd05d830 authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Expanding interfacr of ext_prealloc for sparse data structure

parent c09e850f
No related branches found
No related tags found
No related merge requests found
......@@ -107,6 +107,25 @@ public:
return true;
}
/*! \brief Allocate a chunk of memory
*
* Allocate a chunk of memory
*
* \param sz size of the chunk of memory to allocate in byte
*
*/
bool allocate_nocheck(size_t sz)
{
// Zero sized allocation are ignored
if (sz == 0)
return true;
a_seq = l_size;
l_size += sz;
return true;
}
/*! \brief Return the end pointer of the previous allocated memory
*
* \return the pointer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment