1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#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); bool buffer_view_equals(const BufferView *self, const BufferView *other); #endif