Skip to main content

SCRATCH_UINT32_TRAVERSAL_STACK

SCRATCH_UINT32_TRAVERSAL_STACK : Uint32Array | Object

Useful for traversals, such as tree-walking. When using - make sure you manage dependencies nad understand the call-graph to avoid overwriting data that is used else-where Using a pre-allocated continuous chunk of memory gets us better cache coherence

Kind: global constant
Read only: true

SCRATCH_UINT32_TRAVERSAL_STACK.pointer : number

Pointer used to track current top of the stack, make sure to unwind once your traversal is done Must be a positive integer

Kind: static property of SCRATCH_UINT32_TRAVERSAL_STACK