Struct arcon_allocator::Allocator
source · [−]pub struct Allocator { /* private fields */ }
Expand description
An Allocator for arcon.
The allocator is not meant to handle all heap allocations during the execution. However, it is intended to be used to manage memory for different sections of the runtime. This includes message buffers, network buffers, and state indexes.
Implementations
Allocate memory block of type T with given capacity
Safety
It is up to the caller to ensure dealloc
with the generated AllocId
Deallocate memory through the given AllocId
Safety
It is up to the caller to ensure that the given AllocId is active
Returns amount of bytes that are currently allocated
Returns total allocations made so far
Returns how much bytes are available to allocate