ludus::runtime::behavior::LuauProvider¶
Ludus Wiki · API overview · Browse API
Class
Note
Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h
#include <ludus/runtime/behavior/behavior.h>
class ludus::runtime::behavior::LuauProvider final
Methods¶
LuauProvider¶
ludus::runtime::behavior::LuauProvider::LuauProvider() noexcept=default
Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h
~LuauProvider¶
ludus::runtime::behavior::LuauProvider::~LuauProvider() noexcept
Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h
LuauProvider¶
ludus::runtime::behavior::LuauProvider::LuauProvider(const LuauProvider &)=delete
Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h
operator=¶
LuauProvider & ludus::runtime::behavior::LuauProvider::operator=(const LuauProvider &)=delete
Related types: LuauProvider
Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h
Load¶
Status ludus::runtime::behavior::LuauProvider::Load(const Contract &contract, std::span< const uint8 > trusted_package, usize heap_limit=usize{8} *1024 *1024, uint32 safepoints=100000) noexcept
| Parameter | Description |
|---|---|
contract |
Borrowed immutable generated descriptor and strings; must outlive the active VM.
|
trusted_package |
Only accepted paired-cooker bytes, admitted by the owner; never hostile bytecode.
|
heap_limit |
Per-VM peak allocator byte limit, including temporary realloc storage; nonzero.
|
Note
| Parameter | Description |
|---|---|
safepoints |
Cooperative invocation/initialization bound; nonzero, not an instruction count.
|
Note
Related types: uint8 · usize · uint32 · Status · Contract
Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h
Invoke¶
Status ludus::runtime::behavior::LuauProvider::Invoke(const Invocation &input, Services services, Outcome &output, Diagnostic &diagnostic) noexcept
Note
Related types: Status · Diagnostic · Invocation · Outcome · Services
Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h
BeginDebug¶
Status ludus::runtime::behavior::LuauProvider::BeginDebug(const Invocation &input, Services services, Outcome &output, Diagnostic &diagnostic) noexcept
Note
Related types: Status · Diagnostic · Invocation · Outcome · Services
Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h
ResumeDebug¶
Status ludus::runtime::behavior::LuauProvider::ResumeDebug(uint64 expected_stop, DebugMode mode, Outcome &output, Diagnostic &diagnostic) noexcept
Related types: uint64 · DebugMode · Status · Diagnostic · Outcome
Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h
Breakpoint¶
int32 ludus::runtime::behavior::LuauProvider::Breakpoint(uint64 asset, int32 compiled_line, bool enabled=true) noexcept
Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h
Inspect¶
bool ludus::runtime::behavior::LuauProvider::Inspect(DebugSnapshot &output) const noexcept
Related types: DebugSnapshot
Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h
Close¶
Status ludus::runtime::behavior::LuauProvider::Close() noexcept
Related types: Status
Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h
LiveBytes¶
usize ludus::runtime::behavior::LuauProvider::LiveBytes() const noexcept
Related types: usize
Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h