nanos world API Reference Unofficial documentation
Function Shared Native

string.dump

Returns a string containing a binary representation (a *binary chunk*) of the given function.

Syntax

Lua
string.dump(func, stripDebugInfo)

Parameters

Name Type Default Description
func function — The function to get the bytecode of
stripDebugInfo boolean — True to strip the debug data, false to keep it

Returns

  • string