luaur_bytecode/functions/write_int.rs
1extern crate alloc;
2use alloc::string::String;
3
4pub(crate) fn write_int(ss: &mut String, value: i32) {
5 let bytes = value.to_ne_bytes();
6 unsafe {
7 ss.as_mut_vec().extend_from_slice(&bytes);
8 }
9}
10
11#[allow(non_snake_case)]
12pub(crate) fn writeInt(ss: &mut String, value: i32) {
13 write_int(ss, value);
14}