mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-18 03:42:23 -07:00
gb_internal to docs and other auxiliary files
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user