Convert all uses of *_from_slice to *_from_bytes where appropriate

This commit is contained in:
gingerBill
2022-05-16 01:43:43 +01:00
parent e10105a780
commit 33895b6d92
11 changed files with 31 additions and 26 deletions
+2 -1
View File
@@ -16,7 +16,8 @@ clone_safe :: proc(s: []byte, allocator := context.allocator, loc := #caller_loc
return c[:len(s)], nil
}
ptr_from_slice :: proc(str: []byte) -> ^byte {
ptr_from_slice :: ptr_from_bytes
ptr_from_bytes :: proc(str: []byte) -> ^byte {
d := transmute(mem.Raw_String)str
return d.data
}