luaur-bytecode 0.1.3

Luau bytecode format and builder (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extern crate alloc;
use alloc::string::String;

pub(crate) fn write_int(ss: &mut String, value: i32) {
    let bytes = value.to_ne_bytes();
    unsafe {
        ss.as_mut_vec().extend_from_slice(&bytes);
    }
}

#[allow(non_snake_case)]
pub(crate) fn writeInt(ss: &mut String, value: i32) {
    write_int(ss, value);
}