luaur-bytecode 0.1.3

Luau bytecode format and builder (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::records::call_inliner::CallInliner;

impl<'a> CallInliner<'a> {
    pub(crate) fn allocate_instructions(&mut self) {
        self.caller_inst_size_before_inline = self.caller.instructions.len() as u32;
        self.caller.instructions.resize(
            self.caller_inst_size_before_inline as usize + self.target.instructions.len(),
            Default::default(),
        );
    }
}