summaryrefslogtreecommitdiffstats
path: root/bytecode/slice.h
diff options
context:
space:
mode:
Diffstat (limited to 'bytecode/slice.h')
-rw-r--r--bytecode/slice.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/bytecode/slice.h b/bytecode/slice.h
new file mode 100644
index 0000000..509f7ca
--- /dev/null
+++ b/bytecode/slice.h
@@ -0,0 +1,16 @@
+#ifndef _SLICE_H_
+#define _SLICE_H_
+
+#include <stddef.h>
+#include <stdint.h>
+
+struct slice {
+ size_t size;
+ uint8_t *buf;
+};
+
+struct slice slice(struct slice, size_t, size_t);
+
+struct slice slice1(struct slice, size_t);
+
+#endif