utils.loader
Code loading/unloading utils
utils.loader
utils.loader.loadBuffer(buffer, name, destroy) | Compiles a buffer (ie a list of strings) into an executable function. |
utils.loader.unload(name) | Unloads a module by removing references to it. |
utils.loader
utils.loader.loadBuffer(buffer, name, destroy)
buffer
:
a list of strings.
name
:
is an optional chunk name used for debug traces.
destroy
:
is a boolean. When true, the buffer is read destructively (saves RAM when handling big sources).
function resulting of the buffer compilation
utils.loader.unload(name)
Here is the sequence of operations made by this function:
name
:
the name of the module to unload.