Commit cb5cdb6
Changed files (1)
datatypes
datatypes/string.h
@@ -8,6 +8,11 @@ STRUCT( Str,
u8 data[];
);
+STRUCT( StrSlc,
+ usize len;
+ u8 *data;
+);
+
/* On typical platforms that already have/need nul-termination we keep the nul-termination alongside the explicit length notation.
* Hacky, but no one wants to copy strings/paths for syscalls.