1 class:: ContiguousBlockAllocator
2 summary:: for better handling of dynamic allocation
3 related:: Classes/Server, Classes/PowerOfTwoAllocator
8 A more robust replacement for the default server block allocator, link::Classes/PowerOfTwoAllocator::. May be used in the link::Classes/Server:: class to allocate audio/control bus numbers and buffer numbers.
10 To configure a server to use ContiguousBlockAllocator, execute the following:
12 aServer.options.blockAllocClass = ContiguousBlockAllocator;
14 Normally you will not need to address the allocators directly. However, ContiguousBlockAllocator adds one feature not present in PowerOfTwoAllocator, namely the emphasis::reserve:: method.
19 Create a new allocator with emphasis::size:: slots. You may block off the first emphasis::pos:: slots (the server's audioBusAllocator does this to reserve the hardware input and output buses).
23 private::prReserve, prSplit
26 Return the starting index of a free block that is emphasis::n:: slots wide. The default is 1 slot.
29 Free a previously allocated block starting at emphasis::address::.
32 Mark a specific range of addresses as used so that the alloc method will not return any addresses within that range.