aboutsummaryrefslogtreecommitdiff
path: root/core/raw.odin
blob: 76d284b94e36abb1640d4dfacede3be0b4d35768 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Any :: struct #ordered {
	data:      rawptr;
	type_info: ^Type_Info;
};

String :: struct #ordered {
	data: ^u8;
	len:  int;
};

Slice :: struct #ordered {
	data: rawptr;
	len:  int;
	cap:  int;
};

Dynamic_Array :: struct #ordered {
	data:      rawptr;
	len:       int;
	cap:       int;
	allocator: Allocator;
};

Map :: struct #ordered {
	hashes:  [dynamic]int;
	entries: Dynamic_Array;
};