aboutsummaryrefslogtreecommitdiff
path: root/include/std/buffer_view.h
blob: 59a97d36bc592fff55957d6590efa1235c790014 (plain)
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