aboutsummaryrefslogtreecommitdiff
path: root/include/std/buffer_view.h
blob: a54f616bd7e3a58793b3d3c706af28f3c5cf8224 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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(void);
BufferView create_buffer_view(const char *data, usize size);
BufferView create_buffer_view_auto(const char *data);
bool buffer_view_equals(const BufferView *self, const BufferView *other);

#endif