luaur-common 0.1.3

Foundational data structures and flags for the luaur Luau-in-Rust toolchain.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Generated skeleton item.
//! Node: `cxx:Function:Luau.Common:Common/src/BytecodeWire.cpp:26:read_var_int`
//! Source: `Common/src/BytecodeWire.cpp`
//! Graph edges:
//! - declared_by: source_file Common/src/BytecodeWire.cpp
//! - source_includes:
//!   - includes -> source_file Common/include/Luau/BytecodeWire.h
//!   - includes -> source_file Common/include/Luau/Common.h
//! - incoming:
//!   - declares <- source_file Common/src/BytecodeWire.cpp

use crate::functions::read_var_int_64::read_var_int_64;

pub fn read_var_int(data: &[u8], offset: &mut usize) -> u32 {
    read_var_int_64(data, offset) as u32
}