aboutsummaryrefslogtreecommitdiff
path: root/include/std/buffer_view.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-02-27 22:26:35 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commit76d85a10f6cda93eba29dad5372e8160af7289c8 (patch)
treecfec3043ec45a5e83494ec109e87c239dad6cc47 /include/std/buffer_view.h
parent8201cd9f40897cf6b8e6973b28a8661108702ab1 (diff)
Use multiple threads to parse
Diffstat (limited to 'include/std/buffer_view.h')
-rw-r--r--include/std/buffer_view.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/std/buffer_view.h b/include/std/buffer_view.h
new file mode 100644
index 0000000..4993dc2
--- /dev/null
+++ b/include/std/buffer_view.h
@@ -0,0 +1,14 @@
+#ifndef AMALGAM_BUFFER_VIEW_H
+#define AMALGAM_BUFFER_VIEW_H
+
+#include "types.h"
+
+typedef struct {
+ const char* data;
+ usize size;
+} BufferView;
+
+BufferView create_buffer_view_null();
+BufferView create_buffer_view(const char *data, usize size);
+
+#endif