aboutsummaryrefslogtreecommitdiff
path: root/core/bytes
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-05-16 01:43:43 +0100
committergingerBill <bill@gingerbill.org>2022-05-16 01:43:43 +0100
commit33895b6d927c70167f3bfa64c6cc1c15c4e428c5 (patch)
tree1e33492814edf1b809b94c8a87487b53f1ed7ddb /core/bytes
parente10105a780d98c31faf4f2bce60a2a9dfabec7ab (diff)
Convert all uses of `*_from_slice` to `*_from_bytes` where appropriate
Diffstat (limited to 'core/bytes')
-rw-r--r--core/bytes/bytes.odin3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/bytes/bytes.odin b/core/bytes/bytes.odin
index 66fd20829..f1737f3c5 100644
--- a/core/bytes/bytes.odin
+++ b/core/bytes/bytes.odin
@@ -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
}