luaur-vm 0.1.3

The Luau register virtual machine and standard library (Rust).
Documentation
1
2
3
4
5
6
7
8
9
#[allow(non_snake_case)]
pub(crate) unsafe fn writestring(s: *const core::ffi::c_char, l: usize) {
    use std::io::Write;

    let buf = core::slice::from_raw_parts(s as *const u8, l);
    let mut stdout = std::io::stdout().lock();
    let _ = stdout.write_all(buf);
    let _ = stdout.flush();
}