diff options
Diffstat (limited to 'include/buffer_view.h')
-rw-r--r-- | include/buffer_view.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/buffer_view.h b/include/buffer_view.h new file mode 100644 index 0000000..4993dc2 --- /dev/null +++ b/include/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 |