BlockSuballocator

BlockSuballocator is an helper structure used to simulate resource block suballocations.

Functions

Name

Description

BlockSuballocator

Constructs a BlockSuballocator with a given size.

addBlock

Adds a block to the BlockSuballocator and returns its offset.

freeBlock

Removes a block from the BlockSuballocator.