Class: Counter

Counter~Counter

Class representing allocatable and deallocatable counters Counters are allocated in sequential manner, this applies to deallocated counters Once a counter is deallocated, it will be reused on the next allocation

Constructor

new Counter(beginopt, blockSizeopt)

Creates a counter instance
Parameters:
Name Type Attributes Description
begin number <optional>
Defaults to 0
blockSize number <optional>
Must be a multiple of 32, defaults to 32
Source:

Methods

allocate() → {number}

Allocates a counter sequentially
Source:
Returns:
Type
number

deallocate(counter)

Deallocates a number, it makes it available for reuse
Parameters:
Name Type Description
counter number
Source: