mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Rename mem.reinterpret to mem.reinterpret_copy
This commit is contained in:
+1
-1
@@ -245,7 +245,7 @@ context_from_allocator :: proc(a: Allocator) -> type_of(context) {
|
|||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
|
|
||||||
reinterpret :: proc($T: typeid, ptr: rawptr) -> (value: T) {
|
reinterpret_copy :: proc($T: typeid, ptr: rawptr) -> (value: T) {
|
||||||
copy(&value, ptr, size_of(T));
|
copy(&value, ptr, size_of(T));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user