aboutsummaryrefslogtreecommitdiff
path: root/sys/base/string/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/base/string/internal.h')
-rw-r--r--sys/base/string/internal.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/base/string/internal.h b/sys/base/string/internal.h
new file mode 100644
index 0000000..8c16c64
--- /dev/null
+++ b/sys/base/string/internal.h
@@ -0,0 +1,12 @@
+#pragma once
+#include <u.h>
+#include <base.h>
+
+#define MAX_STRING_ALLOC 1024 * 1024
+
+typedef struct Hdr
+{
+ vlong len;
+ vlong cap;
+ byte buf[];
+} Hdr;