Available functions

checkcaller

Checks whether the current execution context is considered an executor caller.

clonefunction

Clones a closure into a separate function object.

gettenv

Returns the specified thread’s global environment.

hookfunction

Installs a replacement and returns the original callable for delegation.

iscclosure

Checks whether a value is a C closure.

isexecutorclosure

Checks whether Byte identifies a value as an executor-owned closure.

isfunctionhooked

Queries Byte’s managed hook state.

islclosure

Checks whether a value is a Lua closure.

isnewcclosure

Checks whether Byte tracks the function as a newcclosure wrapper.

isnewlclosure

Checks whether Byte tracks the function as a newlclosure wrapper.

loadstring

Compiles Luau source without executing it.

newcclosure

Wraps a Luau callback in a C closure dispatcher.

newlclosure

Returns a Lua closure, wrapping a C function when necessary.

restorefunction

Restores a function managed by Byte’s hook tracking.