AcediaDocumentation

getfunctionhash

Computes a SHA-384 content hash for a Lua function.

Use this with the Hash criterion of filtergc. The result is 96 lowercase hexadecimal digits of SHA-384 over the function's constants followed by its bytecode. It identifies function content, not the closure address.

getfunctionhash(callback: function): string

Parameters

ParameterTypeDescription
callbackfunctionLua closure to hash.

Errors: C closures and newcclosure wrappers are rejected.

On this page