Skip to main content

luaur_code_gen/records/
code_allocation_data.rs

1#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
2#[repr(C)]
3pub struct CodeAllocationData {
4    pub start: *mut u8,
5    pub size: usize,
6    pub code_start: *mut u8,
7    pub allocation_start: *mut u8,
8    pub allocation_size: usize,
9}
10
11impl Default for CodeAllocationData {
12    fn default() -> Self {
13        Self {
14            start: core::ptr::null_mut(),
15            size: 0,
16            code_start: core::ptr::null_mut(),
17            allocation_start: core::ptr::null_mut(),
18            allocation_size: 0,
19        }
20    }
21}