Slice memory manager (allocator, malloc)

I am looking for a variable size allocator with a backing store on a u8 slice (will run on a single thread).

Basically need:

  • malloc
  • free

Is there any project like this?

I found slab_alloc - Rust but this one seems to require all objects to be of a particular size.

Check out bumpalo.

Unfortunately my objects are allocated and freed independent of each-other.

Basically I need the traditional malloc but run it on a given slice.