blob: d3153c77bd3186695b7cdbe0a4021d97378c1e9f (
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;
};
void buffer_grow(lua_State *, struct buffer *);
int buffer_read_more(lua_State *, const int, struct buffer *, const int, lua_KContext);
int buffer_prepare_at_least(lua_State *, const int, struct buffer *, const int, lua_KContext);
int buffer_until(struct buffer *, const char *, const int);
|