summaryrefslogtreecommitdiffhomepage
path: root/buffer.h
blob: d82ee0b8b1b1afbd9f0b7e3320fa076664c200d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

struct buffer
{
	char * data;
	int length;
	int offset;
	int next;
	int allocated;
};

int buffer_grow(struct buffer *);
int buffer_prepare_at_least(const int, struct buffer *, const int);
int buffer_until(struct buffer *, const char *, const int);