gb_internal to docs and other auxiliary files

This commit is contained in:
gingerBill
2022-12-18 21:51:04 +00:00
parent 690666537c
commit 66ce990e0b
5 changed files with 75 additions and 76 deletions
+2 -2
View File
@@ -27,14 +27,14 @@ struct OdinDocHeaderBase {
};
template <typename T>
Slice<T> from_array(OdinDocHeaderBase *base, OdinDocArray<T> const &a) {
gb_internal Slice<T> from_array(OdinDocHeaderBase *base, OdinDocArray<T> const &a) {
Slice<T> s = {};
s.data = cast(T *)(cast(uintptr)base + cast(uintptr)a.offset);
s.count = cast(isize)a.length;
return s;
}
String from_string(OdinDocHeaderBase *base, OdinDocString const &s) {
gb_internal String from_string(OdinDocHeaderBase *base, OdinDocString const &s) {
String str = {};
str.text = cast(u8 *)(cast(uintptr)base + cast(uintptr)s.offset);
str.len = cast(isize)s.length;