luaur-code-gen 0.1.1

Native (A64/X64) code generation for Luau (Rust).
Documentation
1
2
3
4
5
6
7
8
9
#[inline]
pub unsafe fn writeu_32(target: *mut u8, mut value: u32) -> *mut u8 {
    if luaur_common::macros::luau_big_endian::LUAU_BIG_ENDIAN {
        value = value.to_le();
    }

    core::ptr::copy_nonoverlapping(&value as *const u32 as *const u8, target, 4);
    target.add(4)
}