luaur_bytecode/records/table_shape.rs
1#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
2pub struct TableShape {
3 pub keys: [i32; 32],
4 pub constants: [i32; 32],
5 pub length: u32,
6 pub hasConstants: bool,
7}
8
9impl TableShape {
10 pub const kMaxLength: u32 = 32;
11}
12
13impl Default for TableShape {
14 fn default() -> Self {
15 Self {
16 keys: [0; 32],
17 constants: [-1; 32],
18 length: 0,
19 hasConstants: false,
20 }
21 }
22}