luaur-vm 0.1.0

The Luau register virtual machine and standard library (Rust).
Documentation
1
2
3
4
5
6
7
use crate::records::udata::Udata;

#[allow(non_snake_case)]
#[inline]
pub const fn sizeudata(len: usize) -> usize {
    core::mem::offset_of!(Udata, data) + if len > 16 { (len + 15) & !15 } else { len }
}