Skip to main content

Module bytecode_builder_finalize

Module bytecode_builder_finalize 

Source
Expand description

Node: cxx:Method:Luau.Bytecode:Bytecode/src/BytecodeBuilder.cpp:676:finalize

Faithful port of BytecodeBuilder::finalize: assemble the final bytecode blob — version byte, type-encoding version, string table, userdata type-name mapping, then every function’s pre-serialized data blob, then the main function index. bytecode is taken out of self while writing so the &self helpers (write_string_table) and &mut self field reads don’t alias the buffer being filled.