Static variables

@:value(-3)staticinlineread onlyDOUBLE:Int = -3

Grows at a rate of 2.0x.

@:value(0)staticinlineread onlyFIXED:Int = 0

Fixed size; throws an error if additional space is requested.

@:value(-1)staticinlineread onlyMILD:Int = -1

Grows at a rate of 1.125x plus a constant.

@:value(-2)staticinlineread onlyNORMAL:Int = -2

Grows at a rate of 1.5x (default value).

Static methods

staticcompute (rate:Int, capacity:Int):Int

Computes a new capacity from the given growth rate constant and the current capacity.

If rate > 0, capacity grows at a constant rate: newCapacity = capacity + rate