forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
27
Kha/Backends/Kinc-HL/hl/src/allocator.h
Normal file
27
Kha/Backends/Kinc-HL/hl/src/allocator.h
Normal file
@ -0,0 +1,27 @@
|
||||
|
||||
typedef unsigned short fl_cursor;
|
||||
|
||||
typedef struct {
|
||||
fl_cursor pos;
|
||||
fl_cursor count;
|
||||
} gc_fl;
|
||||
|
||||
typedef struct _gc_freelist {
|
||||
int current;
|
||||
int count;
|
||||
int size_bits;
|
||||
gc_fl *data;
|
||||
} gc_freelist;
|
||||
|
||||
typedef struct {
|
||||
int block_size;
|
||||
int max_blocks;
|
||||
int first_block;
|
||||
bool need_flush;
|
||||
// mutable
|
||||
gc_freelist free;
|
||||
unsigned char *sizes;
|
||||
int sizes_ref;
|
||||
int sizes_ref2;
|
||||
} gc_allocator_page_data;
|
||||
|
Reference in New Issue
Block a user