Constructor
new Leaf(begin)
Creates a Leaf
Parameters:
Name | Type | Description |
---|---|---|
begin |
number |
- Source:
Extends
- BitMapTree
Methods
allocate(counternullable, callback)
Allocates a counter and sets the corresponding bit for the bitmap
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
counter |
number |
<nullable> |
|
callback |
function |
- Source:
check(counter, callback)
Checks if the counter has been set
Parameters:
Name | Type | Description |
---|---|---|
counter |
number | |
callback |
function |
- Source:
deallocate(counter, callback)
Deallocates a counter and unsets the corresponding bit for the bitmap
Parameters:
Name | Type | Description |
---|---|---|
counter |
number | |
callback |
function |
- Source: