Module eos_rs::allocation

source ·
Expand description

Module related to allocating data on the heap.

Structs

  • An allocator that can be used with any specified memory area. You can set up a new arena with create_mem_arena.
  • The game’s allocation functions wrapped in a struct. This is set up as the global allocator, unless the global_allocator feature is turned off.

Statics

  • Global allocator (EoSDefaultAllocator). You can disable registering this, by disabling the global_allocator feature of this crate, you can then register you own global allocator.

Functions

  • Allocation error handler. Will freeze the game and output an error message.
  • Creates a new memory arena within a given block of memory. Returns the memory arena.