luaur-common 0.1.2

Foundational data structures and flags for the luaur Luau-in-Rust toolchain.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::records::dense_hash_pointer::DenseHashPointer;

impl DenseHashPointer {
    #[allow(non_snake_case)]
    #[inline]
    pub fn operator_call(&self, key: *const core::ffi::c_void) -> usize {
        let addr = key as usize;
        (addr >> 4) ^ (addr >> 9)
    }
}