浏览代码

Add raw.odin
Forgot to do this in the previous commit, whoops :P

Ginger Bill 8 年之前
父节点
当前提交
d7fdd3d7b8
共有 1 个文件被更改,包括 27 次插入0 次删除
  1. 27 0
      core/raw.odin

+ 27 - 0
core/raw.odin

@@ -0,0 +1,27 @@
+Any :: struct #ordered {
+	type_info: ^Type_Info,
+	data:      rawptr,
+}
+
+String :: struct #ordered {
+	data:  ^byte,
+	len:   int,
+};
+
+Slice :: struct #ordered {
+	data: rawptr,
+	len:  int,
+	cap:  int,
+};
+
+Dynamic_Array :: struct #ordered {
+	data:      rawptr,
+	len:       int,
+	cap:       int,
+	allocator: Allocator,
+};
+
+Dynamic_Map :: struct #ordered {
+	hashes:  [dynamic]int,
+	entries: Dynamic_Array,
+};