mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-22 15:37:51 +00:00
mem.Raw_* alias runtime.Raw_*
This commit is contained in:
+7
-29
@@ -1,35 +1,13 @@
|
|||||||
package mem
|
package mem
|
||||||
|
|
||||||
Raw_Any :: struct {
|
import "core:runtime"
|
||||||
data: rawptr,
|
|
||||||
id: typeid,
|
|
||||||
}
|
|
||||||
|
|
||||||
Raw_String :: struct {
|
Raw_Any :: runtime.Raw_Any
|
||||||
data: ^byte,
|
Raw_String :: runtime.Raw_String
|
||||||
len: int,
|
Raw_Cstring :: runtime.Raw_Cstring
|
||||||
}
|
Raw_Slice :: runtime.Raw_Slice
|
||||||
|
Raw_Dynamic_Array :: runtime.Raw_Dynamic_Array
|
||||||
Raw_Cstring :: struct {
|
Raw_Map :: runtime.Raw_Map
|
||||||
data: ^byte,
|
|
||||||
}
|
|
||||||
|
|
||||||
Raw_Slice :: struct {
|
|
||||||
data: rawptr,
|
|
||||||
len: int,
|
|
||||||
}
|
|
||||||
|
|
||||||
Raw_Dynamic_Array :: struct {
|
|
||||||
data: rawptr,
|
|
||||||
len: int,
|
|
||||||
cap: int,
|
|
||||||
allocator: Allocator,
|
|
||||||
}
|
|
||||||
|
|
||||||
Raw_Map :: struct {
|
|
||||||
hashes: []int,
|
|
||||||
entries: Raw_Dynamic_Array,
|
|
||||||
}
|
|
||||||
|
|
||||||
Raw_Complex64 :: struct {real, imag: f32}
|
Raw_Complex64 :: struct {real, imag: f32}
|
||||||
Raw_Complex128 :: struct {real, imag: f64}
|
Raw_Complex128 :: struct {real, imag: f64}
|
||||||
|
|||||||
@@ -366,6 +366,15 @@ Raw_Map :: struct {
|
|||||||
entries: Raw_Dynamic_Array,
|
entries: Raw_Dynamic_Array,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Raw_Any :: struct {
|
||||||
|
data: rawptr,
|
||||||
|
id: typeid,
|
||||||
|
}
|
||||||
|
|
||||||
|
Raw_Cstring :: struct {
|
||||||
|
data: [^]byte,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
// Init Startup Procedures //
|
// Init Startup Procedures //
|
||||||
|
|||||||
Reference in New Issue
Block a user