ArrayStack Class

This class has no description.

Methods 9

Name Description
ArrayStack

Creates a stack structure. A stack is a LIFO (last in, first out) vector (array) of items. It has O(1) insertion and O(1) removal.

Clear

Clears a stack of all entries.

Clone

Clones an stack, returning a new handle with the same size and data. This should NOT be confused with CloneHandle. This is a completely new handle with the same data but no relation to the original. It should closed when no longer needed.

Pop

Pops a cell value from a stack.

PopArray

Pops an array of cells from a stack.

PopString

Pops a string value from a stack.

Push

Pushes a value onto the end of the stack, adding a new index.

PushArray

Pushes a copy of an array of cells onto the end of a stack. The cells are pushed as a block (i.e. the entire array takes up one stack slot), rather than pushing each cell individually.

PushString

Pushes a copy of a string onto the end of a stack, truncating it if it is too big.

Properties 2

Name Type Description
Emptybool

Returns true if the stack is empty, false otherwise.

BlockSizeint

Retrieve the blocksize the stack was created with.