aboutsummaryrefslogtreecommitdiff
path: root/include/std/buffer_view.h
blob: 4993dc245a9ede288f319af63d0bbff4e3d7afbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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