luaur_bytecode/functions/write_double.rs
1extern crate alloc;
2use alloc::string::String;
3
4pub(crate) fn write_double(ss: &mut String, value: f64) {
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 writeDouble(ss: &mut String, value: f64) {
13 write_double(ss, value);
14}