Module cpr_bf::allocators

source ·
Expand description

Contains various default memory allocators for the Brainfuck Virtual Machine trait

Structs§

  • A non-allocating Brainfuck allocator that checks whether the attempted access lies within the bounds of the currently available memory. If not, it returns an error
  • A dynamically allocating Brainfuck allocator. If accessing an unallocated cell is attempted, the VM memory is expanded to be abble to support that cell.
  • A non-allocating Brainfuck allocator that does not do any checking. Any Brainfuck program that accesses cells beyond the preallocated memory will lead to undefined behaviour.