BlockAllocator

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def alloc(size: Int)(implicit tx: InTxn): Int

Allocates a new block with a given size.

Allocates a new block with a given size.

Value Params
size

the size (or number of channels) to allocate.

Returns

the allocated address, or -1 if no free blocks are available

def consistencyCheck()(implicit tx: InTxn): Unit
def free(address: Int, size: Int)(implicit tx: InTxn): Unit

Frees a block with given address and size.

Frees a block with given address and size.

Value Params
address

the address of the allocated block

size

the size (or number of channels) of the allocated block