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

Creates a new Allocator with the given memory limit size

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

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.