EmscriptenStack
Emscripten Stack bindings.
Properties
Returns the starting address of the stack. This is the address that the stack pointer would point to when no bytes are in use on the stack.
Returns the current stack pointer.
Returns the end address of the stack. This is the address that the stack pointer would point to when the whole stack is in use. (The address pointed to by the end is not part of the stack itself). Note that the stack grows down so the address returned by emscriptenStackEnd is smaller than emscriptenStackBase.
Returns the number of free bytes left on the stack. This is required to be fast so that it can be called frequently.
Functions
Sets the current stack pointer to addr.
Sets the internal values reported by emscriptenStackBase and emscriptenStackEnd. This should only be used by low level libraries such as asyncify fibers.
Startup routine to initialize the stack.