Commit cb5cdb6

kravantokh <kravantokh@noreply.codeberg.org>
2026-08-23 22:07:51
Add StrSlc struct.
1 parent 337b0fa
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.