blob: c051f2d79fd86b21ff10da49bf4ad0853183c7b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#pragma once
#include <lua.h>
struct buffer
{
char * data;
int length;
int offset;
int next;
int allocated;
};
int buffer_grow(struct buffer *);
int buffer_read_more(const int, struct buffer *, const int);
int buffer_prepare_at_least(lua_State *, const int, struct buffer *, const int, lua_KContext);
int buffer_until(struct buffer *, const char *, const int);
|